express.io
express.io copied to clipboard
'disconnect' events via single page handlers
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.
I too am struggling with this issue