socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

when the internet connection is turned off / turned on

Open Tarikmnk opened this issue 4 years ago • 1 comments

Hi, when I turned off internet connection and then I turned on internet connection. socket's on listeners not working in 10 - 20 seconds. After 10 - 20 seconds, listeners start work. Also emit listeners always work in this situtions.

Can you help me?

Tarikmnk avatar Jun 14 '21 20:06 Tarikmnk

When you turn off the internet connection on the device and turn it back on, the app is not the first priority for reconnecting and allowing the connection. First, the computer usually connects to the time server and other necessities. These take time to reconnect and reconfigure. THEN, the app is allowed to "use" the internet. The timeout script in the client reconnects after 10-20 seconds. This is my interpretation. Hope it helped.

P.S. The network card, the internet connection speed, and/or the computing speed of the client's device could also affect the reconnection speed.

humanfriend22 avatar Oct 24 '21 22:10 humanfriend22