Shows how to use matchbox_socket
in a simple example.
- Run the matchbox-provided
matchbox_server
(help), or run your own onws://localhost:3536/
. - Run the demo
cargo run
Install the wasm32-unknown-unknown
target
rustup target install wasm32-unknown-unknown
Install a lightweight web server
cargo install wasm-server-runner
cargo run --target wasm32-unknown-unknown
- Use a web browser and navigate to http://127.0.0.1:1334
- Open the console to see execution logs