Broadcasting
This documents the old v1 API. See Actors for the current version.
When you construct a message, you must specify who receives it.
Broadcast
Section titled “Broadcast”Sends the message to all connected clients.
send.chat.message({ ... }).broadcast();Direct Message
Section titled “Direct Message”Sends the message to specific client IDs.
send.chat.message({ ... }).to([targetClientId]);Sends the message to all clients in a specific room.
send.chat.message({ ... }).toRoom(["room-123"]);