stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.37k stars 124 forks source link

Using with websockets #69

Open Boscop opened 7 years ago

Boscop commented 7 years ago

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

stepancheg commented 7 years ago

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

jprukner commented 4 years ago

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?

stepancheg commented 4 years ago

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.

kshcherban commented 4 years ago

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