diff --git a/.travis.yml b/.travis.yml index ebb54d65..7a911250 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ jobs: script: - | 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 cd - diff --git a/matrix_sdk/examples/wasm_send_message/.gitignore b/matrix_sdk/examples/wasm_command_bot/.gitignore similarity index 100% rename from matrix_sdk/examples/wasm_send_message/.gitignore rename to matrix_sdk/examples/wasm_command_bot/.gitignore diff --git a/matrix_sdk/examples/wasm_send_message/Cargo.toml b/matrix_sdk/examples/wasm_command_bot/Cargo.toml similarity index 100% rename from matrix_sdk/examples/wasm_send_message/Cargo.toml rename to matrix_sdk/examples/wasm_command_bot/Cargo.toml diff --git a/matrix_sdk/examples/wasm_send_message/README.md b/matrix_sdk/examples/wasm_command_bot/README.md similarity index 64% rename from matrix_sdk/examples/wasm_send_message/README.md rename to matrix_sdk/examples/wasm_command_bot/README.md index 84d7d87a..49d1c688 100644 --- a/matrix_sdk/examples/wasm_send_message/README.md +++ b/matrix_sdk/examples/wasm_command_bot/README.md @@ -1,7 +1,5 @@ ## 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 @@ -9,5 +7,6 @@ You can build the example locally with: 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`. \ No newline at end of file diff --git a/matrix_sdk/examples/wasm_send_message/index.js b/matrix_sdk/examples/wasm_command_bot/index.js similarity index 100% rename from matrix_sdk/examples/wasm_send_message/index.js rename to matrix_sdk/examples/wasm_command_bot/index.js diff --git a/matrix_sdk/examples/wasm_send_message/package.json b/matrix_sdk/examples/wasm_command_bot/package.json similarity index 100% rename from matrix_sdk/examples/wasm_send_message/package.json rename to matrix_sdk/examples/wasm_command_bot/package.json diff --git a/matrix_sdk/examples/wasm_send_message/src/lib.rs b/matrix_sdk/examples/wasm_command_bot/src/lib.rs similarity index 100% rename from matrix_sdk/examples/wasm_send_message/src/lib.rs rename to matrix_sdk/examples/wasm_command_bot/src/lib.rs diff --git a/matrix_sdk/examples/wasm_send_message/webpack.config.js b/matrix_sdk/examples/wasm_command_bot/webpack.config.js similarity index 100% rename from matrix_sdk/examples/wasm_send_message/webpack.config.js rename to matrix_sdk/examples/wasm_command_bot/webpack.config.js