Interface TypedPresence<T>

interface TypedPresence<T> {
    inPendingSyncState(): boolean;
    list<V>(chooser?): V[];
    onJoin(callback): void;
    onLeave(callback): void;
    onSync(callback): void;
}

Type Parameters

  • T extends object

Hierarchy

  • Omit<Presence, "list">
    • TypedPresence

Methods

  • Returns boolean

  • Type Parameters

    Parameters

    • Optional chooser: ((key, presence) => V)

    Returns V[]

  • Parameters

    • callback: PresenceOnJoinCallback

    Returns void

  • Parameters

    • callback: PresenceOnLeaveCallback

    Returns void

  • Parameters

    • callback: (() => void | Promise<void>)
        • (): void | Promise<void>
        • Returns void | Promise<void>

    Returns void

Generated using TypeDoc