I use node.js and socket.io. When I refresh the page – the user connection is interrupted. How do I solve this problem?
I do not want, when the user to switch between pages disconnected.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Personally, I would go for the single page application approach myself. But just fancying an alternative solution..
You could try using socket.io with an essentially hidden frame. In one frame, you maintain your connection while the user is still able to navigate in the other.
You’ll have to have some gluecode to pass messages between the frames, but that should be trivial I think.