Liveblocks icon

Liveblocks

Call the Liveblocks REST API (rooms, comments, feeds, Yjs, AI, and more)

Room → Broadcast Event

AI-generated

Summary

Send a JSON payload as a broadcast event to all clients connected to a specified Liveblocks room.

Inputs

  • Room ID (required) — The identifier of the Liveblocks room to which the event will be broadcast.
  • Body — Any JSON payload to send as the broadcast event's content.
  • Include Request in Error — Optionally include detailed request information in error messages to aid debugging if the API call fails.

Output shape

a JSON object reflecting the API response to the broadcast event request

The returned data contains the server acknowledgment or error details if broadcasting fails. Errors may optionally include the outgoing request details if enabled by 'Include Request in Error'.

Links

Discussion