Packages@robojs/sync
PresenceResult<T, ClientData>
Interface: PresenceResult<T, ClientData>
Result returned by useSyncPresence hook.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | - |
ClientData | unknown |
Properties
| Property | Type | Description |
|---|---|---|
clientId | string | Current client's ID |
context | SyncContext<ClientData> | Full sync context for advanced usage |
isHost | boolean | Whether current client is host |
participants | Participant<T, ClientData>[] | Array of all participants with their presence data |
updatePresence | (update: Partial<T> | (prev) => T) => void | Update the current client's presence data |
