Skip to content

reconnect to server when internet connection has been intrupted #146

Open
@roboticsexpert

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions