I'm using an external device (iPad Mini 2) to build my application on, I'm using Reactotron but I'm noticing after maybe 2-3 minutes of inactivity, the device will disconnect so I have to reload the app so it can re-make the call to Reactotron to re-hook. I'm developing a front-end system and a back-end system, so when I'm writing code for my back-end system It's kind of annoying have to reload my device because I've taken some time re-working some code.
Why isn't the connection constant until I manually disconnect?
Apple is pretty aggressive with turning off things that drain battery (wifi, etc) so I suspect what is happening here is the iPad is going to sleep and it is turning off wifi which causes the websocket connection to close. It might be worth building in a way to try and reconnect but we have to be careful to not keep retrying a connection forever if it can't be made.
Ah good old apple. I suppose for now I could run a setInterval to run every 60 seconds which just makes a asyncstorage save, just to keep it updating for now.
The same for me. I'm using genymotion and reactotron keeps disconnecting from virtual device every minute if I'm not doing something with my app. And it's really hard to restart to make it working again. The OS is Windows 10 Pro and the computer is a Lenovo ideapad y700 if it matters.
Sounds like it's happening on both iOS and Android then?
Can you folks edit your comments to add what OS you're on and what version it is, please? Windows, macOS, Linux, and what version of each.
I actually personally had this occur earlier today on an iOS sim. I didn't have the time to investigate it properly at the time but I will be looking at it tonight to see if I can pin this down.
I have tracked down the issue and will be working to land a fix tonight.
:tada: This issue has been resolved in version 2.6.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: