Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SubprotocolName is the subprotocol for gRPC-websocket specified in the Sec-Websocket-Protocol // header. SubprotocolName = "grpc-ws" )
Variables ¶
This section is empty.
Functions ¶
func Write ¶
Write the contents of the reader along the WebSocket connection. This is done by sending each WebSocket message as a gRPC message frame. Each message frame is length-prefixed message, where the prefix is 5 bytes. gRPC request format is specified here: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.