Skip to content

Disconnect on cancelled navigation away from page #77

Closed
mcpherrinm opened this Issue Mar 1, 2012 · 7 comments

4 participants

@mcpherrinm

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.

@puffnfresh

Also experienced this.

@mcpherrinm

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.

@mcfiredrill

@mcpherrinm Why did it not entirely solve the issue?

@mcpherrinm

Honestly, this was a year ago and I've forgotten.

@mcfiredrill

The fix from that thread solved the issue for me.

@mcfiredrill

Hmm, however the docs say this is 'false' by default?
https://github.com/LearnBoost/socket.io/wiki/Configuring-Socket.IO

@mcfiredrill

Anyone else still having this issue? Not sure why the issue was closed if so...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.