matrix-rust-sdk/matrix_sdk/examples/wasm_send_message
stoically ef6104bc53 matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
..
src matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
.gitignore matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
Cargo.toml matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
README.md matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
index.js matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
package.json matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
webpack.config.js matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00

README.md

Example usage of matrix-rust-sdk from WASM

This requires 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, an example usage of fetch from wasm-bindgen.