Skip to content

Interface: InjectPresenceResult\<TPresence\>

@roomful/angular


@roomful/angular / InjectPresenceResult

Interface: InjectPresenceResult<TPresence>

Section titled “Interface: InjectPresenceResult<TPresence>”

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

Describes the return value of injectPresence.

TPresence extends PresenceData = PresenceData

The room presence shape.

all: Signal<Peer<TPresence>[]>

Defined in: angular/src/index.ts:128

Exposes local and remote peers.


others: Signal<Peer<TPresence>[]>

Defined in: angular/src/index.ts:123

Exposes remote peers only.


replace: (this, data) => void

Defined in: angular/src/index.ts:138

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

Defined in: angular/src/index.ts:118

Exposes the local peer snapshot.


update: (this, data) => void

Defined in: angular/src/index.ts:133

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.