Refactor examples into per-app directories with separate HTML, CSS, and JS

- Give each example its own directory: chat/, whiteboard/, sdk-demo/, hrpc-demo/, data-demo/, screenshare/
- Split each into index.html, style.css, and app.js (no inline script/style; CSP-friendly)
- Remove old flat files (e.g. chat.html, whiteboard.html, whiteboard.js)
- Update README, examples/README, and docs/HRPC to use new paths
This commit is contained in:
Raven Scott
2026-02-12 07:35:18 -05:00
parent 1ea4deac6e
commit e801bc0041
24 changed files with 1080 additions and 1217 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ const res = await BridgeSwarm.request('hrpcInvoke', {
if (res.ok && res.result) console.log('Pong:', res.result.pong);
```
Only `ping` is supported via `hrpcInvoke` (streaming commands would require a different bridge). See **examples/hrpc-demo.html** for a full demo: open in two tabs, join the same topic; HRPC is auto-enabled on each connection, then either tab can ping.
Only `ping` is supported via `hrpcInvoke` (streaming commands would require a different bridge). See **examples/hrpc-demo/** for a full demo: open `hrpc-demo/index.html` in two tabs, join the same topic; HRPC is auto-enabled on each connection, then either tab can ping.
## If the spec is missing