edgeport - v1.0.3
    Preparing search index...

    Interface MsrpSession

    A live MSRP session over one active TCP/TLS connection.

    1.0.3

    interface MsrpSession {
        "[asyncDispose]"(): PromiseLike<void>;
        close(): Promise<void>;
        messages(): AsyncIterable<MsrpMessage>;
        send(
            body: string | Uint8Array<ArrayBufferLike>,
            opts?: { contentType?: string; messageId?: string },
        ): Promise<void>;
    }

    Hierarchy

    • AsyncDisposable
      • MsrpSession
    Index
    • Returns PromiseLike<void>

    • Closes the MSRP connection.

      Returns Promise<void>

    • Sends a message, chunking bodies larger than the configured chunk size, and resolving once every chunk is acknowledged.

      Parameters

      • body: string | Uint8Array<ArrayBufferLike>

        The message body (a string is UTF-8 encoded).

      • Optionalopts: { contentType?: string; messageId?: string }

        Optional content type and message id.

      Returns Promise<void>

      Resolves once all chunks are acknowledged.