Skip to content

Interface: UsePresenceResult\<TPresence\>

@roomful/vue


@roomful/vue / UsePresenceResult

Defined in: vue/src/index.ts:110

Describes the return value of usePresence.

TPresence extends PresenceData = PresenceData

The room presence shape.

all: ReadonlyRef<Peer<TPresence>[]>

Defined in: vue/src/index.ts:124

Exposes local and remote peers.


others: ReadonlyRef<Peer<TPresence>[]>

Defined in: vue/src/index.ts:119

Exposes remote peers only.


replace: (this, data) => void

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

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

Defined in: vue/src/index.ts:114

Exposes the local peer snapshot.


update: (this, data) => void

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

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.