GrpcWebClientOptions

Options for the RPC client of the gRPC-Web protocol.

Hierarchy

  • GrpcWebClientOptions

Index

Properties

Optional codec

The Codec to use. By default, we use the GrpcWebJsonCodec codec. The Codec must match the Codec used by the server (this is enforced through content-type negotiation).

Optional getTransport

getTransport: undefined | function

Optional transport mechanism override. A Transport is a low-level implementation that can talk to an HTTP server. The actual transport depends on the runtime (NodeJS, a particular browser), and if not specified @improbable-eng/grpc-web select the most appropriate one.

remoteAddress

remoteAddress: string

The remote address to connect to (example: "https://test.com:8000").