Constructors
constructor
- new Presence<P>(changeContext, presence): Presence<P>
Parameters
- changeContext: ChangeContext<Indexable>
- presence: P
Methods
clear
- clear(): void
Internal
Returns void
get
- get<K>(key): P[K]
Type Parameters
- K extends string | number | symbol
Returns P[K]
set
- set(presence, option?): void
Parameters
- presence: Partial<P>
Optional
option: {
addToHistory: boolean;
}
Returns void
Presence
represents a proxy for the Presence to be manipulated from the outside.