grpc from JavaScript in the browser

5,947 views
Skip to first unread message

John Langley

unread,
Mar 10, 2015, 5:00:12 PM3/10/15
to grp...@googlegroups.com
Any updates on the availability / road-map for browser support of grpc?

TIA

-- Langley 

Eric Anderson

unread,
Mar 11, 2015, 6:36:10 PM3/11/15
to John Langley, grpc-io
On Tue, Mar 10, 2015 at 2:00 PM, John Langley <dig...@gmail.com> wrote:
Any updates on the availability / road-map for browser support of grpc?

No work is currently being done for browser support of gRPC. gRPC requires HTTP Trailers, which is not available in browsers, which is a bit of a show-stopper.

We do recognize that having browser support would make gRPC universal. We haven't given up on the browser, but are inclined to believe it may need a bit different technology.

Having an issue where we could discuss potential solutions wouldn't be a bad idea, if you wanted to make one. 

Louis Ryan

unread,
Mar 12, 2015, 3:16:11 PM3/12/15
to grp...@googlegroups.com, dig...@gmail.com
Its probably a bit more accurate to say that while some browsers do have trailers support the API to interact with HTTP is weaker than we would like and we haven't done the testing necessary to thrash out what is and is not possible. There is hope however


but its hard to say when something like this would land.

kil...@gmail.com

unread,
Aug 1, 2016, 10:07:40 AM8/1/16
to grpc.io, dig...@gmail.com
From this comment, I conclude that gRPC can be used in a browser for RPC calls - except for streaming.
Haven't yet found an example...

Eric Anderson

unread,
Aug 1, 2016, 11:50:43 AM8/1/16
to kil...@gmail.com, grpc.io, John Langley
I think the comment was saying possible in the theoretical sense. Not possible with code available today.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/b56a547a-db3f-46f7-ab38-dd0a98c9dae9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Paul Grosu

unread,
Aug 1, 2016, 12:50:54 PM8/1/16
to grpc.io, kil...@gmail.com, dig...@gmail.com

I prefer the practical sense :)  By empowering users through the addition of documentation for the shared C library and how to properly create a surface API by integrating with it, for sure that will ease your pain of having to create the JavaScript surface API for them. 

It's just a little effort and it will save you so much time down the road.

~p


On Monday, August 1, 2016 at 11:50:43 AM UTC-4, Eric Anderson wrote:
I think the comment was saying possible in the theoretical sense. Not possible with code available today.
On Mon, Aug 1, 2016 at 7:07 AM, <kil...@gmail.com> wrote:
From this comment, I conclude that gRPC can be used in a browser for RPC calls - except for streaming.
Haven't yet found an example...

On Thursday, March 12, 2015 at 9:16:11 PM UTC+2, Louis Ryan wrote:
Its probably a bit more accurate to say that while some browsers do have trailers support the API to interact with HTTP is weaker than we would like and we haven't done the testing necessary to thrash out what is and is not possible. There is hope however


but its hard to say when something like this would land.

On Wednesday, March 11, 2015 at 3:36:10 PM UTC-7, Eric Anderson wrote:
On Tue, Mar 10, 2015 at 2:00 PM, John Langley <dig...@gmail.com> wrote:
Any updates on the availability / road-map for browser support of grpc?

No work is currently being done for browser support of gRPC. gRPC requires HTTP Trailers, which is not available in browsers, which is a bit of a show-stopper.

We do recognize that having browser support would make gRPC universal. We haven't given up on the browser, but are inclined to believe it may need a bit different technology.

Having an issue where we could discuss potential solutions wouldn't be a bad idea, if you wanted to make one. 

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.

travis...@gmail.com

unread,
Mar 10, 2017, 5:14:01 PM3/10/17
to grpc.io, dig...@gmail.com, kil...@gmail.com

Cameron Stuart

unread,
Nov 10, 2017, 8:39:04 AM11/10/17
to grpc.io
grpc from javascript in browsers would be such a breakthrough.
Sadly, I have to hold off until such a day. I can't afford to make my API's work with and without.

But grpc and especially protocol buffers aspect make a very exciting proposition. What protobuf things I have tested so far shows such a dramatic improvement on efficiency.

I guess for the moment, I'll move to protobuf response data out of regular endpoints and then to grpc when (if?) it is available.

Jeff Willette

unread,
Nov 11, 2017, 10:59:30 PM11/11/17
to grpc.io
Reply all
Reply to author
Forward
0 new messages