UNPKG

644 BTypeScriptView Raw
1import type MqttClient from './client';
2import { type Timer } from './get-timer';
3import type { TimerVariant } from './shared';
4export default class KeepaliveManager {
5 private _keepalive;
6 private timerId;
7 private timer;
8 private destroyed;
9 private counter;
10 private client;
11 private _keepaliveTimeoutTimestamp;
12 private _intervalEvery;
13 get keepaliveTimeoutTimestamp(): number;
14 get intervalEvery(): number;
15 get keepalive(): number;
16 constructor(client: MqttClient, variant: TimerVariant | Timer);
17 private clear;
18 setKeepalive(value: number): void;
19 destroy(): void;
20 reschedule(): void;
21}