LearnBoost/socket.io — Issue #635: client-side disconnect is not detected
Author: domino14
Created: 2011-11-11 08:08:32+00:00
State: open

```var socketio = io.connect(socketServer,
{rememberTransport: false,
'reconnect': true,
'reconnection delay': 500,
'max reconnection attempts': 10,
'secure': true});
....
....

socketio.on('disconnect', function() {
alert('client socketio disconnect!')
});
```
The alert shows up if I take down the Node server, but not if I turn off my wireless, or close my laptop and re-open it later. The connection is lost though. Is there a better way to detect disconnect on the client side? This is with the WebSockets transport.