matrix-rust-sdk/matrix_sdk/examples/wasm_send_message/README.md

13 lines
No EOL
510 B
Markdown

## Example usage of matrix-rust-sdk from WASM
This requires [emscripten](https://github.com/emscripten-core/emscripten) to be installed and in PATH to compile successfully.
You can build the example locally with:
npm install
npm run serve
and then visiting http://localhost:8080 in a browser should run the example!
This example is loosely based off of [this example](https://github.com/seanmonstar/reqwest/tree/master/examples/wasm_github_fetch), an example usage of `fetch` from `wasm-bindgen`.