Timer feature for Auto-Reconnect to websocket #303
raunaksarawgi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When the application loses connection to the Robotics Backend (CommsManager.getInstance() returns null), users must manually click the "Reconnect" button in the StatusBar. Although trivial but this requires constant monitoring and manual intervention.
I have implemented an automatic reconnection timer that starts a 5-minute countdown when the connection is lost, and it will automatically trigger the reconnect function (resetManager()) when the timer expires. It also resets when a manual reconnection is attempted.
Implementation Details-
Please review this and if this idea sounds good, then I can raise a PR for the same. I'm attaching a snippet of the changed code for reference.
Beta Was this translation helpful? Give feedback.
All reactions