cmd-control-client-lib 3.0.245 → 3.0.247

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,5 +13,7 @@ export declare enum EnumChannelFlags {
13
13
  BANNEDME = "bannedMe",
14
14
  TICKET = "ticket",
15
15
  ARCHIVEDME = "archivedMe",
16
- MUTEDME = "mutedMe"
16
+ MUTEDME = "mutedMe",
17
+ BLOCKEDOUTBOUND = "blockedOutbound",
18
+ BLOCKEDINBOUND = "blockedInbound"
17
19
  }
@@ -23,14 +23,18 @@ export declare class ConnectionConfig {
23
23
  logger: Logger;
24
24
  webtoken: string;
25
25
  jsonp: boolean;
26
+ firstConnectionRetryInterval: number;
26
27
  connectionRetryInterval: number;
27
28
  initdata: EnumInitDataFormat;
28
29
  onError?: (error: ReconnectionError) => unknown;
30
+ onOpen?: (event: Event) => unknown;
29
31
  deviceId?: string;
30
32
  toString(): string;
31
33
  }
32
34
  export declare class CmdConnection {
33
35
  private static _commandTimeout;
36
+ private _reConnectionTimeoutId?;
37
+ private _isReConnectionPaused;
34
38
  private static _timeoutByAction;
35
39
  private static _fetchJsonp;
36
40
  private static _parsePlainResponse;
@@ -65,7 +69,10 @@ export declare class CmdConnection {
65
69
  private _processReply;
66
70
  private _dequeue;
67
71
  private _sendEntry;
72
+ private _getNextConnectionRetryTimeout;
68
73
  reconnect(): void;
74
+ pause(): void;
75
+ resume(): boolean;
69
76
  private _sendNoop;
70
77
  private _processCommand;
71
78
  private _processCmpdInit;