gRPC from outside [node.js]

25 views
Skip to first unread message

Judes HONORE

unread,
Mar 23, 2017, 12:44:20 AM3/23/17
to grpc.io

I would like to understand how I can request from a gRPC service from a outside client.

According to this example on github (https://github.com/grpc/grpc/tree/master/examples/node/dynamic_codegen), the client need a proto file  dependency.
How can a distant client (outside local scope) should require this proto file ?

Does node.js have a module like grpc-gateway to add REST retro-compatibility for web client access ?

Can you give me an example projet that implement those problems ?

Thx for all your future responses

Regards, Judes HONORE.

Carl Mastrangelo

unread,
Mar 28, 2017, 6:57:09 PM3/28/17
to grpc.io
For protocol buffers, the file needs to be shared out of band.  The proto file is used to generate actual running code for each client which is what the client needs to communicate in the first place.  

To give a technically correct answer, Server reflection is possible to dynamically discover what the remote endpoint knows.  It can be used to get all the protos the server is willing to speak.  It is not turned on by default though.
Reply all
Reply to author
Forward
0 new messages