Have some way to keep the same socket.io connection on client side if user open a new page or refresh the page, maybe store the socket in session or it's impossible?
Have some way to keep the same socket.io connection on client side if user open a new page or refresh the page, maybe store the socket in session or it's impossible?
It seems now that WebWorker are a more widespread technology that it could be use to share websocket.
As explain in this article https://crossbario.com/blog/Websocket-Persistent-Connections/ Webworker are Javascript that is running outside the "thread of the page" and thus are not deleted on page change. Note that it is running only in the same domain. You can also look at Kanaka's answer here How to maintain a WebSockets connection between pages? (2012-2017 answer beware)