Skip to content

Interface: UsePresenceResult\<TPresence\>

@roomful/solid


@roomful/solid / UsePresenceResult

Defined in: solid/src/index.ts:125

Describes the return value of usePresence.

TPresence extends PresenceData = PresenceData

The room presence shape.

all: Accessor<Peer<TPresence>[]>

Defined in: solid/src/index.ts:139

Exposes local and remote peers.


others: Accessor<Peer<TPresence>[]>

Defined in: solid/src/index.ts:134

Exposes remote peers only.


replace: (this, data) => void

Defined in: solid/src/index.ts:149

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: Accessor<Peer<TPresence>>

Defined in: solid/src/index.ts:129

Exposes the local peer snapshot.


update: (this, data) => void

Defined in: solid/src/index.ts:144

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.