grpc-rust icon indicating copy to clipboard operation
grpc-rust copied to clipboard

Using with websockets

Open Boscop opened this issue 8 years ago • 4 comments

I plan to use this library from js in a web app. Is it possible to use this over websockets, like this? https://github.com/tmc/grpc-websocket-proxy https://github.com/grpc/grpc-experiments/issues/159

Boscop avatar Apr 25 '17 18:04 Boscop

I think it is not easily possible. BTW, which JS library you'd like to use? And is there a description of protocol anywhere?

stepancheg avatar May 02 '17 22:05 stepancheg

Any update on this? I'd like to use gRPC and Rust and compile it to WASM. It is possible in Go. https://github.com/dennwc/dom/tree/master/examples/grpc-over-ws Are there any blockers for this?

jprukner avatar Jun 09 '20 14:06 jprukner

No updates. Nobody is working on it.

As for the protocol itself, seems like the most reasonable way to go is to implement grpc-web protocol, although there are no reasons to implement grpc over ws or any other encoding.

stepancheg avatar Jun 20 '20 23:06 stepancheg

There's a reason: to enable client(bidi) streaming with grpc-web. Check this example for golang.

kshcherban avatar Sep 07 '20 16:09 kshcherban