Avena Webapp API - v0.0.1
    Preparing search index...

    Function nextConnectionState

    • Returns the state after a NATS client status event.

      disconnect and reconnecting mean the client is trying to get the server back; reconnect means it did. close means it gave up or was closed. Other events (ping, update, ldm, error, ...) leave the state as it is. Before the page has subscribed (connecting) a reconnect does not claim connected.

      Parameters

      • current: LiveConnectionState

        State before the event.

      • statusType: string

        type of the client's Status event.

      Returns LiveConnectionState

      The new state.