matrix-rust-sdk/matrix_sdk/examples/wasm_send_message
2020-05-12 15:48:17 +02:00
..
src examples: Modify the wasm example to be similar to the command bot. 2020-05-12 15:48:17 +02:00
.gitignore matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
Cargo.toml examples: Modify the wasm example to be similar to the command bot. 2020-05-12 15:48:17 +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
README.md 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

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.