Skip to content

Client streaming from the web browser #254

Answered by akshayjshah
paralin asked this question in Q&A
Discussion options

You must be logged in to vote

Great question :) To me, that document is confusing because it uses "gRPC-Web" to refer to two different things: a protocol and a specific Javascript implementation.

The gRPC-Web protocol supports unary, client streaming, and server streaming RPCs with HTTP/1.1 or HTTP/2. If you have an HTTP/2 connection, it also supports bidirectional streaming.

The connect-go implementation uses net/http, which has all the capabilities needed for all four RPC types. So connect-go servers and clients will happily handle any RPC type using the gRPC-Web protocol.

The grpc/grpc-web implementation runs in web browsers, which buffer request bodies and therefore can't do client or bidirectional streaming. The …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@paralin
Comment options

@akshayjshah
Comment options

Answer selected by akshayjshah
Comment options

You must be logged in to vote
1 reply
@akshayjshah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #252 on June 03, 2022 04:04.