Skip to content
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

reconnect to server when internet connection has been intrupted #146

Open
roboticsexpert opened this issue Apr 14, 2023 · 0 comments
Open

Comments

@roboticsexpert
Copy link

image

i use this code for listening on socket server.

after some while, if internet get disconnect, socket client do not generate any errors or exception and just will stop working.

i tried to add periodic task to send Ping command to make some error if connection has ben lost, but send method will not throw any exception if connection was not healthy.

how can i check the connection is healthy and and working well and if anything goes wrong, i do try to reconnect or get some error for running process again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant