Defined in src/components/activity-tracker.ts:29
Accessors
using Whois
get usingWhois( ) : null | boolean
Returns null | boolean
Defined in src/components/activity-tracker.ts:38
Methods
is User Online
is User Online( userId: string , maxTimeMs: number , defaultOnline?: boolean ) : Promise < { inactiveMs: number ; online: boolean ; } >
Parameters
userId: string
maxTimeMs: number
Optional
defaultOnline: boolean
Returns Promise < { inactiveMs: number ; online: boolean ; } >
Defined in src/components/activity-tracker.ts:69
set Last Active Time
set Last Active Time( userId: string , ts?: number ) : void
Parameters
userId: string
ts: number = ...
Returns void
Defined in src/components/activity-tracker.ts:47
This class provides a "one stop shop" to determine if a user is online. It uses a combination of a local cache, presence endpoints and admin APIs in that order.