Files
marqdo/tests/ext/web-ws-broadcast-live-server.mq.md
T
cflmyandCursor 6808d56c9d ext/web W6b: WebSocket broadcast and access logging
Add route_ws mode=broadcast with a per-path hub, configure access_log
for stderr request lines, and cover both offline and live gold.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 11:13:24 +08:00

419 B


title: web ws broadcast live server import web:ext/web/web.mq.md import plugin:lib/plugin.mq.md import sys:lib/sys.mq.md

main

p = > plugin.native_path name="web"

  1. p

plugin.load path=p

sys.exit code=1

pg = > web.page title="ws-live" app = > web.app page=pg port=18112 app = > app.configure access_log=True app = > app.route_ws path="/room" mode="broadcast"

app.listen