Interface GrpcTransportFactory

All Known Implementing Classes:
MultiplexedWebsocketTransport.Factory

@TsInterface @JsType(namespace="dh.grpc") public interface GrpcTransportFactory
Factory for creating gRPC transports.
  • Method Details

    • create

      Create a new transport instance.
      Parameters:
      options - options for creating the transport
      Returns:
      a transport instance to use for gRPC communication
    • getSupportsClientStreaming

      @JsProperty boolean getSupportsClientStreaming()
      Return true to signal that created transports may have GrpcTransport.sendMessage(Uint8Array) called on it more than once before GrpcTransport.finishSend() should be called.
      Returns:
      true to signal that the implementation can stream multiple messages, false otherwise indicating that Open/Next gRPC calls should be used
    • adapt

      @JsIgnore static TransportFactory adapt(GrpcTransportFactory instance)
      Adapt this factory to the transport factory used by the gRPC-web library.