Setu-TS
    Preparing search index...

    Interface IRealtimeClient<TOutgoing>

    A running realtime WebSocket client.

    interface IRealtimeClient<TOutgoing = unknown> {
        state: RealtimeClientState;
        close(code?: number, reason?: string): void;
        send(message: TOutgoing): void;
    }

    Type Parameters

    • TOutgoing = unknown
    Index

    Current lifecycle state.