#grpc #tunneling #browser #tonic #call #web-tonic

webtonic-proto

Browser enabled websocket tunneling for gRPC (protocol)

2 releases

0.1.1 Mar 29, 2021
0.1.0 Dec 6, 2020

#326 in WebSocket

29 downloads per month
Used in 2 crates

MIT/Apache

12KB
258 lines

WebTonic

Browser enables websocket tunneling of gRPC messages.

Testing

This repository implements a set of small test crates. Running these tests requieres to install wasm-pack.

To run the tests, first start the server:

RUST_LOG=info cargo run -p server-test

Then, after the server is built and running, the client tests can be run.

To test in firefox, run:

wasm-pack test --firefox --headless client-test

To test in chrome, run:

wasm-pack test --chrome --headless client-test

lib.rs:

This crate contains all the part of the WebTonic implementation, that is shared by both the server and the client.

The crate is encoding Requests into Calls and Responses into Replies, using [Prost][prost] messages itself.

Dependencies

~8MB
~144K SLoC