| [ Web Proxy ] |
| Viewing: https://javascriptsolidserver.github.io/JavaScriptSolidServer/docs/notifications.html | [Back] [Original] |
Real-time notifications for resource changes using the solid-0.1 protocol (SolidOS compatible).
jss start --notifications
Clients discover the WebSocket URL via the Updates-Via header:
curl -I http://localhost:4443/alice/public/
# Updates-Via: ws://localhost:4443/.notifications
Server: protocol solid-0.1
Client: sub http://localhost:4443/alice/public/data.json
Server: ack http://localhost:4443/alice/public/data.json
Server: pub http://localhost:4443/alice/public/data.json (on change)
Updates-Viaprotocol solid-0.1 greetingsub <resource-url>ack <resource-url>pub <resource-url>For development, --live-reload injects a script that auto-refreshes the browser when files change on disk:
jss start --live-reload --notifications
File system changes (editing files directly) also trigger WebSocket notifications.
| Web Proxy Viewer | New URL | Original Page |