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 TypeMethodDescriptionvoid
cancel()
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.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.static GrpcTransport
Helper to transform ts implementations to our own api.void
sendMessage
(elemental2.core.Uint8Array msgBytes) Sends a message to the server.void
start
(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, signaling 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, both notifying the server that no more messages will be sent nor received, and preventing the client from receiving any more events. -
from
Helper to transform ts implementations to our own api.
-