Search code examples
streaminggrpcgrpc-web

How to use grpc bidirectional streaming in grpc-web?


I want to use grpc bidirectional streaming in web browser. Can I use bidirectional streaming with grpc-web in browser?

  rpc TypingStream (stream OutgoingTyping) returns (stream IncomingTyping);
}

Solution

  • Currently, there is no support for bidirectional streaming in gRPC-web.

    You could follow the following thread if you're interested: https://github.com/grpc/grpc-web/issues/24

    Thanks :)


    UPDATE (04/2023): In the latest streaming roadmap, it's decided that WebTransport will be used for future support of bi-directional streaming in gRPC-Web.