Skip to content

How to get notified when the client is reconnected? #22

Description

@codeowl1

Hi there,

I am writing an app where the server will periodically go offline and come back online, and I need the client to automatically reconnect, and when it does I need it to send some specific messages to re-initialize things.

I think the client is reconnecting automatically as the exceptions stop getting logged once I start the server again, however I can't find a way to get notified when the client reconnects (on the client side that is) and because of this there I have no way to trigger the sending of the specific messages I need to send when the client reconnects.

How can I solve this problem? There must be a way and I am just not seeing it.... like there must be an onConnected event?

Thanks for your time and contributions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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