examples: Rename to wasm_command_bot and add note about encryption

master
stoically 2020-05-12 15:42:50 +02:00
parent e84a3e417c
commit 890dbdaa39
8 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,7 @@ jobs:
script: script:
- | - |
source emsdk-master/emsdk_env.sh source emsdk-master/emsdk_env.sh
cd matrix_sdk/examples/wasm_send_message cd matrix_sdk/examples/wasm_command_bot
cargo build --target wasm32-unknown-unknown cargo build --target wasm32-unknown-unknown
cd - cd -

View File

@ -1,7 +1,5 @@
## Example usage of matrix-rust-sdk from WASM ## 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: You can build the example locally with:
npm install npm install
@ -9,5 +7,6 @@ You can build the example locally with:
and then visiting http://localhost:8080 in a browser should run the example! and then visiting http://localhost:8080 in a browser should run the example!
Note: Encryption isn't supported yet
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`. 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`.