Files
marqdo/tests/ext/web-ws-broadcast-smoke.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

756 B


title: web ws broadcast + access_log smoke (offline) 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="w6b" app = > web.app page=pg port=18111 app = > app.route_ws path="/room" mode="broadcast" routes = ws_routes room = /room mode = mode

  1. mode == "broadcast"

print text=ws-broadcast-route-ok

print text=ws-broadcast-route-fail

app = > app.configure access_log=True compress=False mw = middleware al = access_log

  1. al

print text=access-log-ok

print text=access-log-fail