Add configurable role⊥permission (five tables, gate permissions, register, /_rbac desk), multi-tenant path/header resolution with JSON tenant_scope, and route_ws on_message/presence/dynamic room_key — with author surfaces, demos, and smokes. Co-authored-by: Cursor <cursoragent@cursor.com>
551 B
551 B
title: web-ws-room demo description: Dynamic room WS with presence (G-WS1/2 bag). Open / and connect via bridge or wscat. import web:ext/web/web.mq.md
main
page = > web.page title="WS room" intro="
Chat room lobby via /chat/lobby. Presence joins chat.room.lobby.presence.
page host="127.0.0.1" port=18091 admin=False
app = > app.route_ws path="/chat/{id}" mode="room" room_key="chat.room.{id}" presence=True
app.listen