WebSocket connection failed error after inactvity
See original GitHub issueIf I lose internet connection for an extended period of time after opening a WebSocket and then come back to my app, I get the error shown below. Immediately after the error, my socket onerror()
listener is called followed by onclose()
. That seems right to me, but I feel like there shouldn’t be a fatal error on the app. I would just re-connect the socket in this situation.
I am on the iOS Simulator for an iPhone 5 running React Native 0.22.2.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
WebSocket connection failed error after inactivity #8302 - GitHub
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with...
Read more >WebSockets in Chrome and Firefox Disconnecting After One ...
It seems like if sockets are disconnected by the server after one minute of inactivity that would apply to IE and Edge just...
Read more >Troubleshooting connection issues | Socket.IO
You are trying to reach a plain WebSocket server · The server is not reachable · The client is not compatible with the...
Read more >Get rid of that annoying “WebSocket connection to '…' failed ...
The module was not inactive. Finally, through further source code poking, I discovered there's a static public method called Jetpack:: ...
Read more >Client WebSocket disconnects when browser is minimized or ...
The fix: ... 1. disable the feature "Intensive throttling of Javascript timer wake ups" in Chrome or, 2. change the web-transport inactive-timeout ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 Happening to me now with large background requests to API
+1 Can you please reopen this? It happens to me too. I am in “DEBUG” mode on an actual device and when the iPad sleeps then it shows this message when I turn it on. This is quite disturbing, if it could be fixed it would be good. Thanks!