Determine if a user is online or offline using a range of metrics.
The userId to check
The maximum time a user may be inactive for before they are considered offline.
Should the user be online or offline if no data is found. Defaults to
Sets the last active time of the user to
ts. By default this is the current time.
The userId of a user who performed an action.
The timestamp to set in milliseconds.
Generated using TypeDoc
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.