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.
To enable websocket communication at the client side, WebsocketTransport
needs to be configured. See this on how to configure a transport in your application.
If you're using grpcwebproxy
to front your gRPC server, see this.
If you're using grpcweb
module as a wrapper around your gRPC-Go server, see this.