deepstream@5.0.5 onClientDisconnect event not fired
See original GitHub issueServer code
const { Deepstream } = require( '@deepstream/server' ); // v.5.0.5
const DeepstreamServer = new Deepstream( {
httpServer: {
type: 'default',
options: {
port: 6020,
host: '127.0.0.1'
}
},
})
DeepstreamServer.set('authentication', {
isValidUser( handshakeData, authData ) {
return {
isValid: true,
id: authData.username,
}
},
async whenReady () {
console.log('whenReady')
},
// This event never fired!!!
onClientDisconnect( username ) {
console.log( 'onClientDisconnect', username )
},
});
DeepstreamServer.start();
console.log( 'DeepStream started...' );
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think that might be because your not implementing the actual plugin interface.
Will look at it and get back to you
Released in 5.0.9