Pawl icon indicating copy to clipboard operation
Pawl copied to clipboard

reconnect to server when internet connection has been intrupted

Open roboticsexpert opened this issue 1 year ago • 0 comments

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?

roboticsexpert avatar Apr 14 '23 15:04 roboticsexpert