@xylink/xy-rtc-sdk 2.0.6 → 2.0.7
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/lib/index.es.js +3 -1
- package/lib/index.js +3 -1
- package/lib/src/enum/errorCode.d.ts +3 -0
- package/lib/src/main/client.d.ts +7 -0
- package/lib/src/main/peer.d.ts +1 -0
- package/lib/src/tools/browser.d.ts +0 -1
- package/lib/src/tools/config.d.ts +1 -1
- package/lib/src/tools/httpClient.d.ts +10 -7
- package/lib/src/tools/socket.d.ts +6 -3
- package/package.json +1 -1
package/lib/src/main/client.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export default class Client extends Emmitter {
|
|
|
68
68
|
private conferenceInfo;
|
|
69
69
|
private customLayoutCacheList;
|
|
70
70
|
private contentMode;
|
|
71
|
+
private isSubscribeBulkRoster;
|
|
71
72
|
private onDocumentChange;
|
|
72
73
|
constructor(config: IClientConfig, servers: IServers, logger: Logger);
|
|
73
74
|
static instance: Client;
|
|
@@ -379,6 +380,12 @@ export default class Client extends Emmitter {
|
|
|
379
380
|
*/
|
|
380
381
|
onMute(): Promise<boolean>;
|
|
381
382
|
private onHand;
|
|
383
|
+
/**
|
|
384
|
+
* 告知媒体是否开启出入会通知
|
|
385
|
+
*
|
|
386
|
+
* @private
|
|
387
|
+
*/
|
|
388
|
+
private sendConfParam;
|
|
382
389
|
/**
|
|
383
390
|
* 获取可支持的编解码
|
|
384
391
|
*
|
package/lib/src/main/peer.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-24 14:06:05
|
|
6
6
|
*/
|
|
7
|
-
export declare const version = "2.0.
|
|
7
|
+
export declare const version = "2.0.7 - build on 2022-08-26 17:25";
|
|
8
8
|
export declare const proxy: {
|
|
9
9
|
wssHost: string;
|
|
10
10
|
restHost: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* webrtc
|
|
2
|
+
* webrtc axios request lib
|
|
3
3
|
*
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-11-01 14:14:45
|
|
@@ -29,7 +29,10 @@ declare class HttpClient {
|
|
|
29
29
|
private clientId;
|
|
30
30
|
private retryCount;
|
|
31
31
|
constructor(commonOption: IAxiosRequestConfig);
|
|
32
|
-
refreshToken(baseURL
|
|
32
|
+
refreshToken({ baseURL, refresh_token }: {
|
|
33
|
+
baseURL?: string | undefined;
|
|
34
|
+
refresh_token?: string | undefined;
|
|
35
|
+
}): Promise<any>;
|
|
33
36
|
setLogger(logger: Logger): void;
|
|
34
37
|
setBaseUrl(url: string): void;
|
|
35
38
|
setClientId(clientId: string): void;
|
|
@@ -37,12 +40,12 @@ declare class HttpClient {
|
|
|
37
40
|
setHeader(params: ISignParams): any;
|
|
38
41
|
setLoginInfo(loginInfo: IToken | null): void;
|
|
39
42
|
getLoginInfo(): any;
|
|
40
|
-
assignOptions: (option?: AxiosRequestConfig
|
|
43
|
+
assignOptions: (option?: AxiosRequestConfig) => AxiosRequestConfig & {
|
|
41
44
|
params: any;
|
|
42
45
|
};
|
|
43
|
-
get: (url: string, option?: IAxiosRequestConfig
|
|
44
|
-
put: (url: string, data?: any, option?: AxiosRequestConfig
|
|
45
|
-
post: (url: string, data?: any, option?: AxiosRequestConfig
|
|
46
|
-
delete: (url: string, option?: AxiosRequestConfig
|
|
46
|
+
get: (url: string, option?: IAxiosRequestConfig) => any;
|
|
47
|
+
put: (url: string, data?: any, option?: AxiosRequestConfig) => any;
|
|
48
|
+
post: (url: string, data?: any, option?: AxiosRequestConfig) => any;
|
|
49
|
+
delete: (url: string, option?: AxiosRequestConfig) => any;
|
|
47
50
|
}
|
|
48
51
|
export default HttpClient;
|
|
@@ -27,23 +27,26 @@ declare class Socket {
|
|
|
27
27
|
private isClose;
|
|
28
28
|
private logger;
|
|
29
29
|
private client;
|
|
30
|
+
private reconnectOffset;
|
|
31
|
+
private reconnectTimer;
|
|
30
32
|
constructor(options: socketOptions, client: any);
|
|
31
33
|
connect(isReconnect?: boolean): void;
|
|
32
34
|
addEvent(): void;
|
|
33
35
|
removeEvent(): void;
|
|
34
36
|
onOpenSocket: (e: any) => void;
|
|
35
37
|
onHandleMessage: (e: any) => void;
|
|
36
|
-
onCloseSocket: (e:
|
|
38
|
+
onCloseSocket: (e: CloseEvent) => void;
|
|
37
39
|
onErrorSocket: (e: any) => void;
|
|
38
40
|
sendHeartBeat(): void;
|
|
39
|
-
|
|
41
|
+
clearTimeout(): void;
|
|
40
42
|
emit(type: string, data: any): void;
|
|
41
43
|
clearPangTimer(): void;
|
|
42
44
|
clearBeatTimer(): void;
|
|
45
|
+
clearReconnectTimer(): void;
|
|
43
46
|
reset(): void;
|
|
44
47
|
on(type: string, fn: any): void;
|
|
45
48
|
close(isReconnect?: boolean): void;
|
|
46
|
-
send(data: any,
|
|
49
|
+
send(data: any, parse?: boolean, isLog?: boolean): void;
|
|
47
50
|
stopCall(): void;
|
|
48
51
|
reConnect(): void;
|
|
49
52
|
}
|