wasm-bindgen/examples/websockets
Liam Murphy a10e949127
Add JsCast to wasm_bindgen::prelude (#3221)
* Add `JsCast` to `wasm_bindgen::prelude`

`JsCast` is a very commonly used trait, but for some reason has never been added to `wasm_bindgen::prelude`, leading to the constant annoyance of having to manually import it.

* Remove redundant imports
2023-01-03 09:44:23 -06:00
..
src Add JsCast to wasm_bindgen::prelude (#3221) 2023-01-03 09:44:23 -06:00
build.sh Test examples in CI (#3015) 2022-08-05 10:51:41 -05:00
Cargo.toml Bumped crate versions (#3079) 2022-09-12 09:26:21 -05:00
index.html Typo (#2765) 2022-01-13 09:29:43 -06:00
index.js added websockets example 2019-06-01 15:40:32 +03:00
README.md Websockets binary msgs (#2109) 2020-04-28 13:16:54 -05:00

WebSockets Example

View documentation for this example online or View compiled example online

You can build the example locally with:

$ wasm-pack build --target web

Then serve the statics and navigate to host:port

# static server from https://crates.io/crates/https
http

# or use python
python2 -m SimpleHTTPServer
python3 -m http.server