@kagamidigital/salt-sdk-mirror
    Preparing search index...

    Type Alias SaltSocketConnectionState

    SaltSocketConnectionState:
        | { type: "connected" }
        | { reason: string; type: "disconnected" }
        | { attempt: number; type: "reconnecting" }
        | { type: "reconnect_failed" }
        | { type: "auth_error" }

    Lifecycle states for the underlying socket.io connection, delivered to subscribers of Salt.subscribeToSocketConnectionState.

    • connected — handshaked, either initially or after a reconnect.
    • disconnected — dropped; reason is socket.io's own reason string.
    • reconnectingsocket.io retrying on its own; attempt counts from 1.
    • reconnect_failedsocket.io gave up retrying.
    • auth_error — the relay rejected the JWT. If refreshAuthToken was configured, a refresh + reconnect is already underway.