Package io.deephaven.web.client.api.grpc
Interface GrpcTransport
- All Known Implementing Classes:
MultiplexedWebsocketTransport
@JsType(namespace="dh.grpc")
@TsInterface
public interface GrpcTransport
gRPC transport implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()End the stream.void"Half-close" the stream.static GrpcTransportHelper to transform ts implementations to our own api.voidsendMessage(elemental2.core.Uint8Array msgBytes) Sends a message to the server.voidstart(jsinterop.base.JsPropertyMap<HeaderValueUnion> metadata) Starts the stream, sending metadata to the server.
-
Method Details
-
start
Starts the stream, sending metadata to the server.- Parameters:
metadata- the headers to send the server when opening the connection
-
sendMessage
void sendMessage(elemental2.core.Uint8Array msgBytes) Sends a message to the server.- Parameters:
msgBytes- bytes to send to the server
-
finishSend
void finishSend()"Half-close" the stream. This signals to the server that no more messages will be sent, but that the client is still open to receiving messages. -
cancel
void cancel()End the stream. This notifies the server that no more messages will be sent or received, and prevents the client from receiving any more events. -
from
Helper to transform ts implementations to our own api.
-