sdk-rust/example-projects/reqwest-wasm-example
Omar Zabala-Ferrera 897cd85c40
Trying resolver fix, again. (#248)
Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>
2024-12-03 15:49:56 +01:00
..
src Bump uuid dep to version 1 2022-06-14 10:52:44 -04:00
.gitignore Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
Cargo.toml Trying resolver fix, again. (#248) 2024-12-03 15:49:56 +01:00
README.md Make the reqwest/wasm example a little more helpful 2021-10-27 23:18:04 -04:00
index.html Make the reqwest/wasm example a little more helpful 2021-10-27 23:18:04 -04:00
index.js Update reqwest wasm example so it compiles and run properly again 2021-09-10 10:56:14 -04:00
package-lock.json Bump webpack in /example-projects/reqwest-wasm-example (#241) 2024-10-30 20:42:39 +02:00
package.json Bump webpack in /example-projects/reqwest-wasm-example (#241) 2024-10-30 20:42:39 +02:00
webpack.config.js Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00

README.md

Example usage of CLoudEvents sdk/Reqwest from WASM

First, ensure you have wasm-pack installed

Then install the dependencies:

npm install

And finally run the example:

npm run serve

You should see a form in your browser at http://localhost:8080. When the form is submitted, a CloudEvent will be sent to the Target URL, http://localhost:9000 by default, which is the default URL for the actix example. Fire it up in another terminal to verify that the data is successfully sent and received.

Open the javascript console in the browser to see any helpful error messages.

This example is loosely based off of this example.