You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The createStompServerSession and createStompClientSession should also accept a StompCommandListener constructor in order to build a listener that accept a reference to the newly created session. With this enhancement the following code will be possible:
classMyListenerimplementsStompClientCommandListener{constructor(privatereadonlysession: StompServerSessionLayer){}connect(headers?: StompHeaders): void{this.session.connected({version: '1.2',server: 'MyServer/1.8.2'}).catch(console.error);}// other methods implemented here...}constsession=createStompServerSession(socket,MyListener);
The text was updated successfully, but these errors were encountered:
The
createStompServerSession
andcreateStompClientSession
should also accept aStompCommandListener
constructor in order to build a listener that accept a reference to the newly created session. With this enhancement the following code will be possible:The text was updated successfully, but these errors were encountered: