8de9f36b69
* experimenting with extracting more common client code * drying up the wasm client * allowing some dead code for the time being * fixed formatting in nym-connect * made socks5 client inside nym-connect immutable * made clippy a bit happier * hidden away target locking for recv timeout
Nym Sphinx Wasm Demo
This example application demonstrates how to use WebAssembly to create Sphinx packets, in the browser, and forward them to a Nym gateway.
🚴 Usage
Build the WASM package for bundling:
wasm-pack build --scope nymproject --target no-modules
in the clients/webassembly directory (one up).
Start the webpack dev server:
npm install # set up dependencies
npm run start # starts a web server at http://localhost:8001
Check your dev console for output.
Rebuild after Rust source changes
Install wasm-pack. Instruction are at the Rust WASM tutorial.
wasm-pack build --scope nymproject --target no-modules in the clients/webassembly directory (one up) will rebuild the wasm package if you make changes to the Rust source. That will be automatically picked up (and reloaded, if need be) by the npm dev server.