903ef44328
* directory-client: removing explicit type definitions * clients/webassembly: ugly commit, removes dependency on HTTP crates ...at the cost of copying quite a bit of NymTopology-related stuff into the WebAssembly client. I'll make an issue to refactor that later. * A more helpful hint in the error message when websocket connection fails. * Removing superfluous JavaScript, route checking now happens in Rust
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
npm run start # fires up a web page at http://localhost:8001
Check your dev console for output.
Rebuild after Rust source changes
./wasm-pack build in the nym-sphinx-wasm 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.
How was this built?
This is a skeleton demo app, built from a template at: https://github.com/rustwasm/create-wasm-app
See the Rust WASM tutorial for more. This was generated using the command npm init wasm-app www in case you'd like to see where it came from originally.
License
Licensed under
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)