2 releases
0.1.1 | Mar 29, 2021 |
---|---|
0.1.0 | Dec 6, 2020 |
#323 in WebSocket
25KB
467 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
:
Server crate of the WebTonic
project.
This crate only contains the Server
.
This is necessary, in order to unpack the requests, the client has sent over the websocket connection.
It is designed to mimic the
Tonic
implementation.
Dependencies
~12–22MB
~315K SLoC