3

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);
}

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

0
Remark: WebTransport is for HTTP/3 while this gRPC-web is for HTTP/2
        In fact, WebTransport want to be variant for websocket and is compatible with QUIC.
        WebTransport have streaming support and is bidirectional(client-server paradigm).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.