Heartbeat
Members
Name | Type | Description |
---|---|---|
client | Client | TODO |
context | string | TODO |
interval | number | TODO |
logger | Logger | Pino logger |
name | string | TODO |
Methods
init
Description
TODO
Example
init(): Promise<void>
on
Description
Creates event subscription
Example
on(event: string, listener: Function): void
off
Description
Removes event subscription. Same as removeListener
Example
off(event: string, listener: Function): void
once
Description
Creates event subscription that only triggers once
Example
once(event: string, listener: Function): void
removeListener
Description
Removes event subscription. Same as off
Example
removeListener(event: string, listener: Function): void