Authentication will not be used in this simple demo.
If you would like to experiment with it, the account associated with the demo
storage uses email alice@example.org
and password password
.
This demo will require running CSS locally.
npm install
npm start
An update on the example resource can be triggered with
curl -X PUT http://localhost:3000/demo/foo -H "Content-Type: text/plain" -d "🚶 Walk 🚶"
The WebSocket demo can be run with
node websocket.mjs
It will print out the created notification channel and every notification.
The Streaming HTTP demo can be run with curl
.
First, we need to discover the receiveFrom
URL. It is advertised in the Link
HTTP header of the response using rel="http://www.w3.org/ns/solid/terms#updatesViaStreamingHttp2023"
.
curl -I http://localhost:3000/demo/foo
Now, we can simply make a request
curl http://localhost:3000/.notifications/StreamingHTTPChannel2023/demo/foo
and see notifications whenever the topic resource gets updated.
The Javasctipt Streaming HTTP demo can be run with
node streaming-http.mjs
It will print out the created notification channel and every notification.
The Webhook demo can be run with
node webhook.mjs
It will print out the created notification channel and every notification.