Hierarchy

  • RealtimePresence

Constructors

  • Initializes the Presence.

    Parameters

    • channel: RealtimeChannel

      The RealtimeChannel

    • Optional opts: PresenceOpts

      The options, for example {events: {state: 'state', diff: 'diff'}}

    Returns RealtimePresence

Properties

caller: {
    onJoin: PresenceOnJoinCallback;
    onLeave: PresenceOnLeaveCallback;
    onSync: (() => void);
}

Type declaration

  • onJoin: PresenceOnJoinCallback
  • onLeave: PresenceOnLeaveCallback
  • onSync: (() => void)
      • (): void
      • Returns void

enabled: boolean
joinRef: null | string
pendingDiffs: RawPresenceDiff[]

Generated using TypeDoc