Skip to content

Files

This branch is 45 commits behind cloudevents/sdk-rust:main.

reqwest-wasm-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 14, 2022
May 20, 2020
Jun 14, 2022
Oct 28, 2021
Oct 28, 2021
Sep 10, 2021
Jul 22, 2022
Sep 10, 2021
May 20, 2020

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.