Example of using the Rust Tonic gRPC bidirectional streaming client in the Node app using the NAPI-RS.
This example uses echo proto file from the Tonic examples. You can use the Tonic echo server for this client as an example.
- Rust library is in
src/lib.rs
- NodeJS calling in
test.mjs
yarn
yarn build
- Start the echo server
- Run
node test.mjs