websocket-ts
    Preparing search index...

    Variable WebsocketEventConst

    WebsocketEvent: {
        close: "close";
        error: "error";
        message: "message";
        open: "open";
        reconnect: "reconnect";
        retry: "retry";
    } = ...

    Events that can be fired by the websocket.

    Type declaration

    • Readonlyclose: "close"

      Fired when the connection is closed.

    • Readonlyerror: "error"

      Fired when the connection has been closed because of an error, such as when some data couldn't be sent.

    • Readonlymessage: "message"

      Fired when a message is received.

    • Readonlyopen: "open"

      Fired when the connection is opened.

    • Readonlyreconnect: "reconnect"

      Fired when the websocket successfully reconnects after a connection loss.

    • Readonlyretry: "retry"

      Fired when the websocket tries to reconnect after a connection loss.