Answer the question
In order to leave comments, you need to log in
How to properly reconnect to socket.io?
When the tab hangs inactive for a long time, I noticed that the connection with socket.io disappears on the page.
I set the io({forceNew: true}) parameter to the input - but it doesn't help, there is no new connection.
Perhaps someone has come across this?
Answer the question
In order to leave comments, you need to log in
I can assume that through the handling of the connection break event.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question