Files
marqdo/tests/ext/web-ws-broadcast-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

751 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 = app[^ws_routes] room = routes[^/room] mode = room[^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 = app[^middleware] al = mw[^access_log]

  1. al

print text=access-log-ok

print text=access-log-fail