Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RealtimePresence

class RealtimePresence {
constructor(channel: RealtimeChannel, opts?: PresenceOpts);
caller: {
onJoin: PresenceOnJoinCallback;
onLeave: PresenceOnLeaveCallback;
onSync: () => void;
}
;
channel: RealtimeChannel;
joinRef: string | null;
pendingDiffs: RawPresenceDiff[];
}

§Constructors

§
new RealtimePresence(channel: RealtimeChannel, opts?: PresenceOpts)
[src]

Initializes the Presence.

@param channel
  • The RealtimeChannel
@param opts
  • The options, for example {events: {state: 'state', diff: 'diff'}}

§Properties

§
caller: {
onJoin: PresenceOnJoinCallback;
onLeave: PresenceOnLeaveCallback;
onSync: () => void;
}
[src]
§
joinRef: string | null
[src]
§
pendingDiffs: RawPresenceDiff[]
[src]