Skip to content

Broadcasting

This documents the old v1 API. See Actors for the current version.

When you construct a message, you must specify who receives it.

Sends the message to all connected clients.

send.chat.message({ ... }).broadcast();

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"]);