This type can be used to emit events to all clients which have joined the room.
It is possible to use emit on rooms with Id nil
but then the event will be emitted to no one.
Function | Description |
---|---|
emit | Emit a change. |
id | Return id of the room or nil when the room is not stored. |
name | Return the name of the room or nil when the room has no name. |
set_name | Set or remove the name for a room. |