K
K
komarevtsev2016-08-10 11:34:48
JavaScript
komarevtsev, 2016-08-10 11:34:48

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

1 answer(s)
X
xmoonlight, 2016-08-10
@xmoonlight

I can assume that through the handling of the connection break event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question