Interface GrpcTransport

gRPC transport implementation.

Hierarchy

  • GrpcTransport

Methods

  • End the stream, both notifying the server that no more messages will be sent nor received, and preventing the client from receiving any more events.

    Returns void

  • "Half close" the stream, signaling to the server that no more messages will be sent, but that the client is still open to receiving messages.

    Returns void

  • Sends a message to the server.

    Parameters

    • msgBytes: Uint8Array

      bytes to send to the server

    Returns void

  • Starts the stream, sending metadata to the server.

    Parameters

    • metadata: {
          [key: string]: string | string[];
      }

      the headers to send the server when opening the connection

      • [key: string]: string | string[]

    Returns void