react-native icon indicating copy to clipboard operation
react-native copied to clipboard

WebSocket connection failed error after inactvity

Open fender opened this issue 10 years ago • 5 comments

If 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.

simulator screen shot 7 apr 2016 15 14 47

fender avatar Apr 07 '16 13:04 fender

Might be that someone is trying to send a message when socket is not connected. Can you post the code to reproduce this?

satya164 avatar Apr 16 '16 21:04 satya164

@facebook-github-bot no-reply

damusnet avatar May 05 '16 21:05 damusnet

Closing this issue as more information is needed to debug this and we haven't heard back from the author. Once there's more information we can reopen the issue.

facebook-github-bot avatar May 05 '16 21:05 facebook-github-bot

+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!

afilp avatar Sep 08 '16 08:09 afilp

+1 Happening to me now with large background requests to API

igolden avatar Jan 03 '17 20:01 igolden