Interface Transport

A transport for sending and receiving messages. Most implementations use an underlying WebSocket connection.

Hierarchy

  • Transport

Methods

  • Closes the underlying resources.

    Returns Promise<void>

  • Registers the given handler for incoming messages.

    Parameters

    • handler: ((message) => void)
        • (message): void
        • Parameters

          • message: Uint8Array

          Returns void

    Returns void

  • A promise that resolves once ready.

    Returns Promise<void>

  • Sends the given message.

    Parameters

    • message: Uint8Array

    Returns Promise<void>

Generated using TypeDoc