Package io.deephaven.web.client.api.grpc
Interface GrpcTransportFactory
- All Known Implementing Classes:
MultiplexedWebsocketTransport.Factory
@TsInterface
@JsType(namespace="dh.grpc")
public interface GrpcTransportFactory
Factory for creating gRPC transports.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransportFactory
adapt
(GrpcTransportFactory instance) Adapt this factory to the transport factory used by the gRPC-web library.create
(GrpcTransportOptions options) Create a new transport instance.boolean
Return true to signal that created transports may haveGrpcTransport.sendMessage(Uint8Array)
called on it more than once beforeGrpcTransport.finishSend()
should be called.
-
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 haveGrpcTransport.sendMessage(Uint8Array)
called on it more than once beforeGrpcTransport.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
Adapt this factory to the transport factory used by the gRPC-web library.
-