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:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user