LogoRobo.js
Packages@robojs/sync

SyncBroadcastResult<ClientData>

Interface: SyncBroadcastResult<ClientData>

Result object returned by useSyncBroadcast hook.

Type Parameters

Type ParameterDefault type
ClientDataunknown

Properties

PropertyTypeDescription
broadcast(payload: unknown) => voidSend an ephemeral message to all clients in the room
contextSyncContext<ClientData>The sync context for this key/room
send(clientId: string, payload: unknown) => voidSend an ephemeral message to a specific client

On this page