ReadonlynameThe room name.
ReadonlysizeNumber of currently open members.
Adds a connection to this room.
The connection to add
Sends a frame to every open member, skipping any closed member and any
member named by options.except.
Text as string, binary as Uint8Array
Optionaloptions: RoomBroadcastOptions
Broadcast options
Serializes a value to JSON once and broadcasts it as a text frame.
The payload type
The value to serialize
Optionaloptions: RoomBroadcastOptions
Broadcast options
Removes a connection from this room.
The connection to remove
A named broadcast group of connections — the bidirectional analogue of the SSE plugin's channels.
Connections are removed automatically when they close, so a room never broadcasts to a dead peer.
Since
0.2.0