Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 901 Bytes

websocket.md

File metadata and controls

17 lines (9 loc) · 901 Bytes

Client-side streaming over websocket

Due to the limitations of HTTP/2 based transports in browsers, they cannot support client-side/bi-directional streaming. @improbable-eng/grpc-web provides a built-in websocket transport that alleviates this issue.

Enabling at the client side

To enable websocket communication at the client side, WebsocketTransport needs to be configured. See this on how to configure a transport in your application.

Enabling at the server side

grpcwebproxy

If you're using grpcwebproxy to front your gRPC server, see this.

grpcweb

If you're using grpcweb module as a wrapper around your gRPC-Go server, see this.