Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActivityTrackerOpts

Hierarchy

  • ActivityTrackerOpts

Index

Properties

defaultOnline

defaultOnline: boolean

Should the tracker assume offline or online if it doesn't have enough information.

Optional onLastActiveTimeUpdated

onLastActiveTimeUpdated: (userId: string, ts: number) => void | Promise<void>

Run a function when the last active time for a user gets updated

Type declaration

    • (userId: string, ts: number): void | Promise<void>
    • Parameters

      • userId: string
      • ts: number

      Returns void | Promise<void>

serverName

serverName: string

Matrix server name. Used for determining local and remote users.

example

matrix.org

Optional usePresence

usePresence: boolean

Should presence be used. Set to false if the homeserver has presence disabled.

Generated using TypeDoc