ws.room.close [--room TEXT] → roomCloses the room --room — an exact name, or a pattern closing every open room it matches. Each session is closed with 4410 and raises $disconnect { reason: "room_closed" }; the room's state is dropped. A fixed room is back at once, empty. Without --room the room is the one of the trigger.room that started the run. An exact room that is not open is FW_NODE_WS_ROOM_NOT_OPEN. Adds room: { room, closed, sessions } — the rooms closed and how many sessions they held — and keeps the rest of the payload.
Flags
--room: The room to close — an exact name, or a pattern closing every open room it matches; default: the room of the trigger.room that started the run.
Examples
End a match
| ws.room.close --room "match-{{ $trigger.params.id }}"It answers:
json
{ "room": { "room": "match-7", "closed": [ "match-7" ], "sessions": 4 }}