Setu-TS
    Preparing search index...

    Interface CloudflareServerSocket

    The server half of a Workers WebSocketPair. Workers sockets are driven with addEventListener after an explicit accept(), not with on* properties.

    0.2.0

    interface CloudflareServerSocket {
        readyState: number;
        accept(): void;
        addEventListener(type: string, listener: (event: never) => void): void;
        close(code?: number, reason?: string): void;
        send(data: string | Uint8Array<ArrayBufferLike>): void;
    }

    Hierarchy (View Summary)

    Index
    readyState: number

    Numeric ready state, per the web WebSocket API.