Flotype/now — Issue #156: Lost connection not "disconnecting"
Author: brihogan
Created: 2011-11-25 03:45:53+00:00
State: open

Am I doing something wrong? Seems like `everyone.disconnect` and `now.core.on('disconnect')` do not fire if the internet connection is lost. Only seems to fire when user closes the browser (or leaves the page). I can reproduce by using on my laptop and shutting off the wifi.

I'm guessing this may also be the case if the browser crashes? This makes me a little nervous since I have an array of connected users that I cannot clear out if the disconnect doesn't fire.

Is this a socket.io limitation?

Not sure if it matters, but I am running a locally stored HTML file that connects to my node server. I'll have to see if serving up the HTML file via the node server is any different.