kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface WSMessage

    A single WebSocket message — text or binary with optional parsed JSON.

    interface WSMessage {
        data: string | Uint8Array<ArrayBufferLike>;
        json?: unknown;
        timestamp: number;
    }
    Index

    Properties

    Properties

    data: string | Uint8Array<ArrayBufferLike>

    Raw data as received (string or binary Uint8Array).

    json?: unknown

    Parsed JSON when data is a string and valid JSON, otherwise undefined.

    timestamp: number

    Wall-clock ms when message was received.