rmapi-js
    Preparing search index...

    Interface PlatformSocket

    an open websocket, read by pulling

    interface PlatformSocket {
        close(): void | Promise<void>;
        receive(): Promise<string | Uint8Array<ArrayBufferLike> | null>;
    }
    Index
    • start the closing handshake

      Returns void | Promise<void>

    • the next text or binary message, or null once the socket has closed

      Returns Promise<string | Uint8Array<ArrayBufferLike> | null>