This method is a bit dangerous if the room is encrypted, e.g. people can send events before the room state has been fetched and thus accidentally send out unencrypted events in an encrypted room. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| index.js | ||
| package.json | ||
| README.md | ||
| webpack.config.js | ||
Example usage of matrix-rust-sdk from WASM
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.