shaxbee / go-wsproxy

GRPC Gateway WebSocket Proxy
MIT License
3 stars 1 forks source link

Example code #1

Open dinesh opened 6 years ago

dinesh commented 6 years ago

@shaxbee Can we have an example of how to use go-wsproxy with grpc-gateway ?

shaxbee commented 6 years ago

@dinesh You can take a look at wsproxy_test.go to see how to plug it in - it simply wraps around grpc-gateway http.Handler.

However this project is two years old and in meantime grpc-gateway gained support for one-way server-client streaming. There is also grpcweb which wraps grpc protocol in browser-friendly way without need for http annotations in proto.