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 disconnect callback is never called, after user disconnects.
Expected behavior
console gets 'connected' and eventually 'disconnected' after the user has disconnected and heartbeat expires, or he/she calls disconnect() directly from the client.
Actual behavior
console gets 'connected' but never 'disconnect'
The text was updated successfully, but these errors were encountered:
This will be added in the next version. For now, the disconnect event on the Socket.io socket can be used:
app.configure(socketio(function(io){io.on('connection',function(socket){socket.on('disconnect',()=>{// Do something here// socket.feathers is the `connection` object});});
Great news, thanks for the super quick reply and for all the effort you have put into this project + open-source, support, etc. Outstanding really appreciate it👍
Looks like the 'disconnect' event not exposed. is this by design?
How can I detect on the server when a user has disconnected? (either via pingTimeout or explicitly calling disconnect() on the client socket?
Steps to reproduce
app.configure(socketio());
app.on('connection', () => {console.log('connected');});
app.on('disconnect', () => {console.log('disconnected');});
The disconnect callback is never called, after user disconnects.
Expected behavior
console gets 'connected' and eventually 'disconnected' after the user has disconnected and heartbeat expires, or he/she calls disconnect() directly from the client.
Actual behavior
console gets 'connected' but never 'disconnect'
The text was updated successfully, but these errors were encountered: