diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 50d43da..09eb606 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -40,6 +40,7 @@ pipeline { parallel { stage('relay-js') { steps { script { copyExample() } } } stage('store-js') { steps { script { copyExample() } } } + stage('light-js') { steps { script { copyExample() } } } } } diff --git a/light-js/README.md b/light-js/README.md new file mode 100644 index 0000000..ca9798f --- /dev/null +++ b/light-js/README.md @@ -0,0 +1,13 @@ +# Using Waku Light Push and Filter in JavaScript + +**Demonstrates**: + +- Waku Light node: Waku Filter + Waku Light Push +- Pure Javascript/HTML. +- Use minified bundle of js from unpkg.com, no import, no package manager. + +This example uses Waku Filter to listen to messages and Waku Light Push to send messages. + +To test the example, simply download the `index.html` file from this folder and open it in a browser. + +The `master` branch's HEAD is deployed at https://js.waku.org/light-js/. diff --git a/light-js/index.html b/light-js/index.html new file mode 100644 index 0000000..56bd698 --- /dev/null +++ b/light-js/index.html @@ -0,0 +1,126 @@ + + + + + + + JS-Waku light node example + + + + +

Status

+
+ +

Local Peer Id

+
+ +

Remote Peer Id

+
+ + + +
+ + +
+ + +
+
+ + + + +