express.io icon indicating copy to clipboard operation
express.io copied to clipboard

'disconnect' events via single page handlers

Open adamboazbecker opened this issue 12 years ago • 1 comments

How is it possible to add a 'disconnect' event whenever I leave a page that is intercepted by my single page application engine?

I have certain events set up that require a socket connection (kind of like streaming events on YouTube, but each having its own socket). I now set up a single page engine on Angular that allows switching between these events, and load new ones.

I used to rely on the 'disconnect' event to let me know when someone has left the event, but they now don't work - the socket never shuts off if I leave via my single-page navigation.

Is there any way to configure the socket to still disconnect?

Much appreciated.

adamboazbecker avatar Nov 08 '13 06:11 adamboazbecker

I too am struggling with this issue

Jamie452 avatar Jan 28 '14 22:01 Jamie452