Skip to content

Interface: UsePresenceResult\<TPresence\>

@roomful/react


@roomful/react / UsePresenceResult

Defined in: react/src/index.ts:108

Describes the return value of usePresence.

TPresence extends PresenceData = PresenceData

The room presence shape.

all: Peer<TPresence>[]

Defined in: react/src/index.ts:122

Exposes local and remote peers.


others: Peer<TPresence>[]

Defined in: react/src/index.ts:117

Exposes remote peers only.


replace: (this, data) => void

Defined in: react/src/index.ts:132

Replaces the local presence payload.

Replaces the local presence payload. Overwrites the existing value.

void

Partial<TPresence>

The partial presence payload to publish for the local peer.

void

Nothing.


self: Peer<TPresence>

Defined in: react/src/index.ts:112

Exposes the local peer snapshot.


update: (this, data) => void

Defined in: react/src/index.ts:127

Partially updates the local presence payload.

Partially updates the local presence payload. Merges into the existing value.

void

Partial<TPresence>

The partial presence payload to merge into the local peer.

void

Nothing.