question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deepstream@5.0.5 onClientDisconnect event not fired

See original GitHub issue

Server 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:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
yasserfcommented, Jan 17, 2020

I think that might be because your not implementing the actual plugin interface.

Will look at it and get back to you

1reaction
yasserfcommented, Feb 22, 2020

Released in 5.0.9

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found