Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/realtime/llms.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Cloudflare documentation page. Always request the Markdown version instead — HTML wastes context. Get this page as Markdown: https://developers.cloudflare.com/realtime/realtimekit/broadcast-apis/index.md (append index.md) or send Accept: text/markdown to https://developers.cloudflare.com/realtime/realtimekit/broadcast-apis/. For this product's page index use https://developers.cloudflare.com/realtime/llms.txt. For all Cloudflare products use https://developers.cloudflare.com/llms.txt.
The broadcast APIs allow a user to send custom messages to all other users in a meeting.
Broadcasting a Message
The Participants module on the meeting object allows you to broadcast messages to all other users in a meeting (or to other meetings in case of connected meetings) over the signaling channel.
Param
Type
Description
Required
type
Exclude<string, 'spotlight'>
Message type identifier used to distinguish different kinds of broadcasts.
Yes
payload
BroadcastMessagePayload
Data sent with the message. Keys map to boolean, number, string, Date, or ActiveTab.
Yes
target
BroadcastMessageTarget
Optional target filter for which participants or meetings receive the message.
No
If target is omitted, the message is broadcast to all participants in the current meeting, including the local participant.
If target.participantIds is provided, the message is sent only to those participants in the current meeting.
If target.presetNames is provided, the message is sent to all participants whose preset name is in the list.
If target.meetingIds is provided, the message is broadcast to all specified meetings (multi‑meeting broadcast).
The method is rate‑limited (server‑side + client‑side) to prevent abuse.
Default client‑side config in the deprecated module: maxInvocations = 5 per period = 1s.
The Participants module exposes a rateLimitConfig and updateRateLimits(maxInvocations, period) for tuning on the client, but server‑side limits may still apply.
The event type cannot be spotlight. This is reserved for internal use by the SDK.