Zebflow Docs
ws.room.list
Zebflow Docs

ws.room.list

Lists this project's open rooms that --room matches (a pattern or an exact name; default , every room)

ws.room.list [--room TEXT] [--members] → room

Lists this project's open rooms that --room matches (a pattern or an exact name; default *, every room). Adds room: { rooms: [ { room, kind, private, mode, meta, sessions, max_sessions, opened_at, opened_by, last_activity_at, state_bytes, counters } ], total: { rooms, sessions } } and keeps the rest of the payload. Counters only rise from the moment the room opened (messages_in, messages_out, pipeline_runs, pipeline_errors, resyncs, flood_closes; ticks, tick_overruns and inputs_dropped count in tick rooms only); a rate is the difference between two readings. --members adds each room's members: [ { session, sub, tags, away } ] — every session with its identity, its tags (ws.session.tag) and whether its seat is held for a dropped connection; without it no identity is listed. Matchmaking reads meta and the free seats here, then ws.ticket.create or ws.room.open.

Flags

  • --room: Which rooms: a pattern or an exact name (default *, every room).
  • --members: Also list each room's sessions: their sub, their tags, and whether they are away.

Examples

Find a match with a free seat

| ws.room.list --room "match-*"

Then pick a room whose sessions is under max_sessions and | ws.ticket.create --room ….

It answers:

json
{  "room": {    "rooms": [      {        "room": "match-7",        "kind": "opened",        "private": true,        "mode": "event",        "meta": {          "mode": "ranked"        },        "sessions": 3,        "max_sessions": 10,        "opened_at": "2026-10-16T08:00:00Z",        "opened_by": "pipelines/matches/open",        "last_activity_at": "2026-10-16T08:04:10Z",        "state_bytes": 512,        "counters": {          "messages_in": 140,          "messages_out": 410,          "ticks": 0,          "tick_overruns": 0,          "inputs_dropped": 0,          "pipeline_runs": 140,          "pipeline_errors": 0,          "resyncs": 0,          "flood_closes": 0        }      }    ],    "total": {      "rooms": 1,      "sessions": 3    }  }}