2 releases
0.1.1 | Mar 29, 2021 |
---|---|
0.1.0 | Dec 6, 2020 |
#355 in WebSocket
Used in 2 crates
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
~5.5–7.5MB
~129K SLoC