-
Notifications
You must be signed in to change notification settings - Fork 844
Socket disconnect
not fired when device loses network
#1415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey! Have you setup all parameters related to reconnection? Eg:
It's working properly with above config in my case, so I get several reconnect events and then disconnect. |
I'm dealing with the same issue. Any update @phansen-nd ? |
@miguel-arrf no we ended up using a different network handler because this didn't work. |
Oh... @phansen-nd . Thank you anyway! |
This seems to still be an issue... network disconnects causing socket failure should emit a disconnect. *Edit: When a user loses network connection completely, or switches from Wifi to LTE, it takes about 50-60 seconds for the |
@nuclearace can we get some input on this? |
Did you use Apple's |
It used to walk back in 2021. Not sure why now is not working when i am debugging. |
This is still an issue unfortunately |
Version 16.0.0
Expected behavior
A connected socket will fire the
disconnect
event when a device loses network. Or fire any event, likestatusChanged
orreconnect
.Actual behavior
No
disconnect
event is emitted until the ping timeout 60 seconds later.I've tried the following code to get any indication that the socket is no longer connected:
but no event fires when the device loses network until 60 seconds later.
For what it's worth, the Java SocketIO client is connected to the same server and receives a
disconnect
event immediately upon losing network, so it does not seem to be anything to do with the server configuration.The text was updated successfully, but these errors were encountered: