Package io.deephaven.web.client.api.grpc
Class FetchTransport
java.lang.Object
io.deephaven.web.client.api.grpc.FetchTransport
- All Implemented Interfaces:
GrpcTransport
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()End the stream.void"Half-close" the stream.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.
-
Constructor Details
-
FetchTransport
-
-
Method Details
-
start
Description copied from interface:GrpcTransportStarts the stream, sending metadata to the server.- Specified by:
startin interfaceGrpcTransport- Parameters:
metadata- the headers to send the server when opening the connection
-
sendMessage
public void sendMessage(elemental2.core.Uint8Array msgBytes) Description copied from interface:GrpcTransportSends a message to the server.- Specified by:
sendMessagein interfaceGrpcTransport- Parameters:
msgBytes- bytes to send to the server
-
finishSend
public void finishSend()Description copied from interface:GrpcTransport"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.- Specified by:
finishSendin interfaceGrpcTransport
-
cancel
public void cancel()Description copied from interface:GrpcTransportEnd the stream. This notifies the server that no more messages will be sent or received, and prevents the client from receiving any more events.- Specified by:
cancelin interfaceGrpcTransport
-