@koi-design/callkit 2.0.2 → 2.0.3

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.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ import { Invitation, UserAgent, Registerer } from 'sip.js';
3
3
  declare class Api {
4
4
  private callKit;
5
5
  constructor(callKit: CallKit);
6
+ private isLogining;
7
+ private isLoginOuting;
6
8
  login(params: {
7
9
  userName: string;
8
10
  password: string;
@@ -56,6 +58,8 @@ interface SocketConfig {
56
58
  backoffMultiplier: number;
57
59
  pingInterval: number;
58
60
  pingTimeout: number;
61
+ maxConnectsPerWindow?: number;
62
+ timeWindow?: number;
59
63
  }
60
64
  declare class Socket {
61
65
  private callKit;
@@ -63,12 +67,13 @@ declare class Socket {
63
67
  private socketConfig;
64
68
  lastPingTime: any;
65
69
  isConnected: boolean;
66
- pingTimer?: number;
70
+ pingTimer?: ReturnType<typeof setInterval>;
67
71
  satrtConfirm: boolean;
68
72
  private reconnectTimer?;
69
73
  private isReconnecting;
70
74
  private reconnectAttempts;
71
75
  private socketError;
76
+ private connectAttemptTimes;
72
77
  constructor(callKit: CallKit);
73
78
  init(): void;
74
79
  private handleDisconnect;
@@ -125,6 +130,7 @@ interface IConfig {
125
130
  iceInfo: string[];
126
131
  iceGatheringTimeout: number;
127
132
  encryptionMethod: EncryptionMethodType;
133
+ logGather: boolean;
128
134
  };
129
135
  }
130
136
  declare class Config {