Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RealtimePresence

Index

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: any }

Type declaration

  • onJoin: PresenceOnJoinCallback
  • onLeave: PresenceOnLeaveCallback
  • onSync:function
    • onSync(): void
    • Returns void

joinRef: null | string
pendingDiffs: RawPresenceDiff[]

Generated using TypeDoc