@koi-design/callkit 2.0.2 → 2.0.4
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 +4 -2
- package/dist/index.global.js +263 -224
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +82 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +79 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +48 -48
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;
|
|
@@ -53,7 +55,6 @@ interface SocketConfig {
|
|
|
53
55
|
enabled: boolean;
|
|
54
56
|
maxAttempts: number;
|
|
55
57
|
delay: number;
|
|
56
|
-
backoffMultiplier: number;
|
|
57
58
|
pingInterval: number;
|
|
58
59
|
pingTimeout: number;
|
|
59
60
|
}
|
|
@@ -63,7 +64,7 @@ declare class Socket {
|
|
|
63
64
|
private socketConfig;
|
|
64
65
|
lastPingTime: any;
|
|
65
66
|
isConnected: boolean;
|
|
66
|
-
pingTimer?:
|
|
67
|
+
pingTimer?: ReturnType<typeof setInterval>;
|
|
67
68
|
satrtConfirm: boolean;
|
|
68
69
|
private reconnectTimer?;
|
|
69
70
|
private isReconnecting;
|
|
@@ -125,6 +126,7 @@ interface IConfig {
|
|
|
125
126
|
iceInfo: string[];
|
|
126
127
|
iceGatheringTimeout: number;
|
|
127
128
|
encryptionMethod: EncryptionMethodType;
|
|
129
|
+
logGather: boolean;
|
|
128
130
|
};
|
|
129
131
|
}
|
|
130
132
|
declare class Config {
|