# ws

- ws.message.send: Sends --body over a WebSocket - ws.room.close: Closes the room --room — an exact name, or a pattern closing every open room it matches - ws.room.list: Lists this project's open rooms that --room matches (a pattern or an exact name; default , every room) - ws.room.open: Opens the room --room (an exact name, e.g - ws.session.close: Closes the session --session (its id), or every session of the identity --user (its sub), in the room --room — an exact name, or a pattern reaching every open room it matches; without --room, the room of the trigger.room that started the run - ws.session.tag: Gives a session of a room tags, or takes them away - ws.state.delete: Removes the value at --key - ws.state.put: Replaces the value at --key with --value, creating the objects above it - ws.state.update: Shallow-merges the object --value into the object at --key, creating it if absent - ws.ticket.create: A pass for --user into the open room --room: signed by the platform, usable once, valid for --ttl (default 60s, at most 10m)

# ws

- [`ws.message.send`](/nodes/ws/ws.message.send.md): Sends --body over a WebSocket
- [`ws.room.close`](/nodes/ws/ws.room.close.md): Closes the room --room — an exact name, or a pattern closing every open room it matches
- [`ws.room.list`](/nodes/ws/ws.room.list.md): Lists this project's open rooms that --room matches (a pattern or an exact name; default , every room)
- [`ws.room.open`](/nodes/ws/ws.room.open.md): Opens the room --room (an exact name, e.g
- [`ws.session.close`](/nodes/ws/ws.session.close.md): Closes the session --session (its id), or every session of the identity --user (its sub), in the room --room — an exact name, or a pattern reaching every open room it matches; without --room, the room of the trigger.room that started the run
- [`ws.session.tag`](/nodes/ws/ws.session.tag.md): Gives a session of a room tags, or takes them away
- [`ws.state.delete`](/nodes/ws/ws.state.delete.md): Removes the value at --key
- [`ws.state.put`](/nodes/ws/ws.state.put.md): Replaces the value at --key with --value, creating the objects above it
- [`ws.state.update`](/nodes/ws/ws.state.update.md): Shallow-merges the object --value into the object at --key, creating it if absent
- [`ws.ticket.create`](/nodes/ws/ws.ticket.create.md): A pass for --user into the open room --room: signed by the platform, usable once, valid for --ttl (default 60s, at most 10m)
