@realsee/live 0.5.0-alpha.1 → 0.5.0-alpha.12
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/live/controller.d.ts +6 -0
- package/dist/live/createLiveReact.d.ts +2 -2
- package/dist/live/live.d.ts +9 -1
- package/dist/realsee-live.cjs.development.js +172 -72
- package/dist/realsee-live.cjs.development.js.map +1 -1
- package/dist/realsee-live.cjs.production.js +1 -1
- package/dist/realsee-live.cjs.production.js.map +1 -1
- package/dist/realsee-live.esm.js +162 -62
- package/dist/realsee-live.esm.js.map +1 -1
- package/dist/realsee-live.umd.development.js +189 -73
- package/dist/realsee-live.umd.development.js.map +1 -1
- package/dist/realsee-live.umd.production.js +1 -1
- package/dist/realsee-live.umd.production.js.map +1 -1
- package/dist/typings/live/index.d.ts +1 -0
- package/dist/utils/RobustWebSocket.d.ts +23 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/VRWebViewRTC.html +5 -5
- package/docs/enums/LiveState.html +7 -0
- package/docs/index.html +1 -1
- package/docs/modules.html +14 -8
- package/package.json +2 -2
|
@@ -28,6 +28,7 @@ export declare type RobustWebSocketEventMap = {
|
|
|
28
28
|
connecting: (event: RobustWebSocketEvent<RobustWebSocketEventDetail>) => void;
|
|
29
29
|
timeout: (event: RobustWebSocketEvent<RobustWebSocketEventDetail>) => void;
|
|
30
30
|
open: (event: RobustWebSocketEvent<RobustWebSocketEventDetail>) => void;
|
|
31
|
+
closing: () => void;
|
|
31
32
|
close: (event: CloseEvent) => void;
|
|
32
33
|
error: (event: Event) => void;
|
|
33
34
|
message: (event: MessageEvent<string | ArrayBuffer | Blob | ArrayBufferView>) => void;
|
|
@@ -41,6 +42,7 @@ export declare class RobustWebSocket extends Subscribe<RobustWebSocketEventMap>
|
|
|
41
42
|
private _realWebSocket;
|
|
42
43
|
private _url?;
|
|
43
44
|
private _protocols;
|
|
45
|
+
private _readyState;
|
|
44
46
|
private _options;
|
|
45
47
|
private _connectTimeout;
|
|
46
48
|
private _attempts;
|
|
@@ -49,9 +51,26 @@ export declare class RobustWebSocket extends Subscribe<RobustWebSocketEventMap>
|
|
|
49
51
|
private _explicitlyClosed;
|
|
50
52
|
private _pendingReconnect;
|
|
51
53
|
private _connectivityEventsAttached;
|
|
54
|
+
private _heathCheckTimer;
|
|
52
55
|
get attempts(): number;
|
|
53
56
|
constructor(options?: RobustWebSocketConstructorOptions);
|
|
54
57
|
setOptions(options: RobustWebSocketConstructorOptions): void;
|
|
58
|
+
/**
|
|
59
|
+
* 做一个健康检查
|
|
60
|
+
*/
|
|
61
|
+
private _healthCheck;
|
|
62
|
+
/**
|
|
63
|
+
* 清理健康检查
|
|
64
|
+
*/
|
|
65
|
+
private _clearHeathCheckIfNeed;
|
|
66
|
+
/**
|
|
67
|
+
* 开启健康检查
|
|
68
|
+
*/
|
|
69
|
+
private _startHealthCheck;
|
|
70
|
+
/**
|
|
71
|
+
* 停止健康检查
|
|
72
|
+
*/
|
|
73
|
+
private _stopHealthCheck;
|
|
55
74
|
/**
|
|
56
75
|
* 清理连接中的请求
|
|
57
76
|
*/
|
|
@@ -94,6 +113,10 @@ export declare class RobustWebSocket extends Subscribe<RobustWebSocketEventMap>
|
|
|
94
113
|
* 创建ws连接
|
|
95
114
|
*/
|
|
96
115
|
private _createWebSocket;
|
|
116
|
+
/**
|
|
117
|
+
* 断开ws事件
|
|
118
|
+
*/
|
|
119
|
+
private _removeWebSocketEvent;
|
|
97
120
|
/**
|
|
98
121
|
* 分发ws事件
|
|
99
122
|
*/
|