disconnect event triggered after client reconnects with websocket
Tested this on chrome 13.0782.55
If the client send a disconnect and reconnects after, a disconnect event is triggered shortly after when using websocket as a transport.
socket = io.connect('http://localhost', {reconnect:false}); socket.disconnect(); socket.socket.connect();
Is the disconnect triggered on the client side or on the server side?
Both sides register the disconnect event, but I'm not quite sure which on triggers it.
I think I got a idea what is triggering this, we have close timeout after this timeout the disconnect is fired. But it shouldn't fire when you connect again... So that is a bug.
I think this basically the same as #425. Any possible workarounds other than disabling websockets as a transport?
I just tested this from HEAD and it no longer seems to be an issue.