Steps to reproduce:
visit ridezap.com:3000 (tested in firefox nightly)
connect to a server
join a channer
Attempt to navigate away - onbeforeunload fires
User chooses to abort navigation away
Client has disconnected, when it should still be connected.
Also experienced this.
It's socket.io behavior. http://groups.google.com/group/socket_io/browse_thread/thread/5315a2978f31868e/ffda8fd107c1b35b?lnk=raot&pli=1
I have a fork that applies the suggested fix from that thread, but doesn't entirely solve the issue.
@mcpherrinm Why did it not entirely solve the issue?
Honestly, this was a year ago and I've forgotten.
The fix from that thread solved the issue for me.
set 'sync disconnect on unload' to false for socket.io client options.
fixes issue #77
Hmm, however the docs say this is 'false' by default?
Anyone else still having this issue? Not sure why the issue was closed if so...