Interface GrpcTransport

All Known Implementing Classes:
MultiplexedWebsocketTransport

@JsType(namespace="dh.grpc") @TsInterface public interface GrpcTransport
gRPC transport implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    End the stream.
    void
    "Half-close" the stream.
    from(Transport tsTransport)
    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

      void start(jsinterop.base.JsPropertyMap<HeaderValueUnion> metadata)
      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

      @JsIgnore static GrpcTransport from(Transport tsTransport)
      Helper to transform ts implementations to our own api.