@webex/plugin-meetings 3.10.0-next.8 → 3.10.0-webex-services-ready.1
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/annotation/annotation.types.js.map +1 -1
- package/dist/annotation/constants.js.map +1 -1
- package/dist/annotation/index.js +19 -22
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +6 -6
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/collection.js.map +1 -1
- package/dist/breakouts/edit-lock-error.js +9 -11
- package/dist/breakouts/edit-lock-error.js.map +1 -1
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +126 -127
- package/dist/breakouts/index.js.map +1 -1
- package/dist/breakouts/request.js +6 -8
- package/dist/breakouts/request.js.map +1 -1
- package/dist/breakouts/utils.js.map +1 -1
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +1 -2
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +9 -11
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +10 -12
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-forbidden-error.js +10 -12
- package/dist/common/errors/join-forbidden-error.js.map +1 -1
- package/dist/common/errors/join-meeting.js +10 -12
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/join-webinar-error.js +9 -11
- package/dist/common/errors/join-webinar-error.js.map +1 -1
- package/dist/common/errors/media.js +9 -11
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/multistream-not-supported-error.js +9 -11
- package/dist/common/errors/multistream-not-supported-error.js.map +1 -1
- package/dist/common/errors/no-meeting-info.js +9 -11
- package/dist/common/errors/no-meeting-info.js.map +1 -1
- package/dist/common/errors/parameter.js +11 -14
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +9 -11
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +9 -11
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reclaim-host-role-errors.js +32 -38
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -1
- package/dist/common/errors/reconnection-not-started.js +5 -6
- package/dist/common/errors/reconnection-not-started.js.map +1 -1
- package/dist/common/errors/reconnection.js +9 -11
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +9 -11
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +20 -29
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +9 -12
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +9 -10
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +9 -10
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +17 -17
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +1 -2
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +11 -8
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.js +1 -2
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.js +1 -2
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +20 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +515 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +1266 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +21 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +48 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +6 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +6 -8
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interpretation/collection.js.map +1 -1
- package/dist/interpretation/index.js +1 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/interpretation/siLanguage.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +551 -94
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +3 -4
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +7 -0
- package/dist/locus-info/types.js.map +1 -0
- package/dist/media/MediaConnectionAwaiter.js +1 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +0 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +15 -17
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js.map +1 -1
- package/dist/meeting/brbState.js +8 -9
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/connectionStateHandler.js +10 -13
- package/dist/meeting/connectionStateHandler.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1555 -1527
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +13 -17
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +11 -12
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +101 -104
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/type.js.map +1 -1
- package/dist/meeting/util.js +24 -23
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +3 -3
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/collection.js +7 -10
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +1 -2
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +135 -146
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +1 -2
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +36 -37
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +30 -31
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +6 -8
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +179 -141
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +6 -8
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +25 -23
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +1 -2
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +6 -3
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -2
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +18 -21
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +8 -11
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +3 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +1 -2
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +34 -45
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +8 -9
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +12 -15
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +1 -2
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +122 -123
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +29 -30
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/personal-meeting-room/index.js +16 -19
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +7 -10
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/clusterReachability.js +56 -373
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +203 -205
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +14 -1
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +445 -0
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -0
- package/dist/reachability/request.js.map +1 -1
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/constants.js.map +1 -1
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +178 -176
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.js +1 -2
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/index.js +12 -15
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +24 -26
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +75 -76
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/types.js.map +1 -1
- package/dist/transcription/index.js +4 -5
- package/dist/transcription/index.js.map +1 -1
- package/dist/types/constants.d.ts +26 -21
- package/dist/types/hashTree/constants.d.ts +8 -0
- package/dist/types/hashTree/hashTree.d.ts +129 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +260 -0
- package/dist/types/hashTree/types.d.ts +25 -0
- package/dist/types/hashTree/utils.d.ts +9 -0
- package/dist/types/locus-info/index.d.ts +91 -42
- package/dist/types/locus-info/types.d.ts +46 -0
- package/dist/types/meeting/index.d.ts +22 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +2 -0
- package/dist/types/reachability/clusterReachability.d.ts +10 -88
- package/dist/types/reachability/reachability.types.d.ts +12 -1
- package/dist/types/reachability/reachabilityPeerConnection.d.ts +111 -0
- package/dist/webinar/collection.js +1 -2
- package/dist/webinar/collection.js.map +1 -1
- package/dist/webinar/index.js +148 -158
- package/dist/webinar/index.js.map +1 -1
- package/package.json +22 -21
- package/src/constants.ts +13 -1
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1161 -0
- package/src/hashTree/types.ts +30 -0
- package/src/hashTree/utils.ts +42 -0
- package/src/locus-info/index.ts +556 -85
- package/src/locus-info/types.ts +48 -0
- package/src/meeting/index.ts +58 -26
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +104 -51
- package/src/metrics/constants.ts +2 -0
- package/src/reachability/clusterReachability.ts +50 -347
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +416 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1532 -0
- package/test/unit/spec/hashTree/utils.ts +103 -0
- package/test/unit/spec/locus-info/index.js +667 -1
- package/test/unit/spec/meeting/index.js +91 -20
- package/test/unit/spec/meeting/utils.js +77 -0
- package/test/unit/spec/meetings/index.js +71 -26
- package/test/unit/spec/reachability/clusterReachability.ts +281 -138
|
@@ -23,17 +23,11 @@ export declare const Events: {
|
|
|
23
23
|
export type Events = Enum<typeof Events>;
|
|
24
24
|
/**
|
|
25
25
|
* A class that handles reachability checks for a single cluster.
|
|
26
|
-
*
|
|
26
|
+
* Creates and orchestrates a ReachabilityPeerConnection instance.
|
|
27
|
+
* Listens to events and emits them to consumers.
|
|
27
28
|
*/
|
|
28
29
|
export declare class ClusterReachability extends EventsScope {
|
|
29
|
-
private
|
|
30
|
-
private numTcpUrls;
|
|
31
|
-
private numXTlsUrls;
|
|
32
|
-
private result;
|
|
33
|
-
private pc?;
|
|
34
|
-
private defer;
|
|
35
|
-
private startTimestamp;
|
|
36
|
-
private srflxIceCandidates;
|
|
30
|
+
private reachabilityPeerConnection;
|
|
37
31
|
readonly isVideoMesh: boolean;
|
|
38
32
|
readonly name: any;
|
|
39
33
|
readonly reachedSubnets: Set<string>;
|
|
@@ -44,94 +38,22 @@ export declare class ClusterReachability extends EventsScope {
|
|
|
44
38
|
*/
|
|
45
39
|
constructor(name: string, clusterInfo: ClusterNode);
|
|
46
40
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @returns {
|
|
49
|
-
*/
|
|
50
|
-
private getElapsedTime;
|
|
51
|
-
/**
|
|
52
|
-
* Generate peerConnection config settings
|
|
53
|
-
* @param {ClusterNode} cluster
|
|
54
|
-
* @returns {RTCConfiguration} peerConnectionConfig
|
|
55
|
-
*/
|
|
56
|
-
private buildPeerConnectionConfig;
|
|
57
|
-
/**
|
|
58
|
-
* Creates an RTCPeerConnection
|
|
59
|
-
* @param {ClusterNode} clusterInfo information about the media cluster
|
|
60
|
-
* @returns {RTCPeerConnection} peerConnection
|
|
41
|
+
* Sets up event listeners for the ReachabilityPeerConnection instance
|
|
42
|
+
* @returns {void}
|
|
61
43
|
*/
|
|
62
|
-
private
|
|
44
|
+
private setupReachabilityPeerConnectionEventListeners;
|
|
63
45
|
/**
|
|
64
46
|
* @returns {ClusterReachabilityResult} reachability result for this cluster
|
|
65
47
|
*/
|
|
66
48
|
getResult(): ClusterReachabilityResult;
|
|
67
49
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @returns {void}
|
|
71
|
-
*/
|
|
72
|
-
private closePeerConnection;
|
|
73
|
-
/**
|
|
74
|
-
* Resolves the defer, indicating that reachability checks for this cluster are completed
|
|
75
|
-
*
|
|
76
|
-
* @returns {void}
|
|
50
|
+
* Starts the process of doing UDP, TCP, and XTLS reachability checks on the media cluster.
|
|
51
|
+
* @returns {Promise<ClusterReachabilityResult>}
|
|
77
52
|
*/
|
|
78
|
-
|
|
53
|
+
start(): Promise<ClusterReachabilityResult>;
|
|
79
54
|
/**
|
|
80
|
-
* Aborts the cluster reachability checks
|
|
81
|
-
*
|
|
55
|
+
* Aborts the cluster reachability checks
|
|
82
56
|
* @returns {void}
|
|
83
57
|
*/
|
|
84
58
|
abort(): void;
|
|
85
|
-
/**
|
|
86
|
-
* Adds public IP (client media IPs)
|
|
87
|
-
* @param {string} protocol
|
|
88
|
-
* @param {string} publicIP
|
|
89
|
-
* @returns {void}
|
|
90
|
-
*/
|
|
91
|
-
private addPublicIP;
|
|
92
|
-
/**
|
|
93
|
-
* Registers a listener for the iceGatheringStateChange event
|
|
94
|
-
*
|
|
95
|
-
* @returns {void}
|
|
96
|
-
*/
|
|
97
|
-
private registerIceGatheringStateChangeListener;
|
|
98
|
-
/**
|
|
99
|
-
* Saves the latency in the result for the given protocol and marks it as reachable,
|
|
100
|
-
* emits the "resultReady" event if this is the first result for that protocol,
|
|
101
|
-
* emits the "clientMediaIpsUpdated" event if we already had a result and only found
|
|
102
|
-
* a new client IP
|
|
103
|
-
*
|
|
104
|
-
* @param {string} protocol
|
|
105
|
-
* @param {number} latency
|
|
106
|
-
* @param {string|null} [publicIp]
|
|
107
|
-
* @param {string|null} [serverIp]
|
|
108
|
-
* @returns {void}
|
|
109
|
-
*/
|
|
110
|
-
private saveResult;
|
|
111
|
-
/**
|
|
112
|
-
* Determines NAT Type.
|
|
113
|
-
*
|
|
114
|
-
* @param {RTCIceCandidate} candidate
|
|
115
|
-
* @returns {void}
|
|
116
|
-
*/
|
|
117
|
-
private determineNatType;
|
|
118
|
-
/**
|
|
119
|
-
* Registers a listener for the icecandidate event
|
|
120
|
-
*
|
|
121
|
-
* @returns {void}
|
|
122
|
-
*/
|
|
123
|
-
private registerIceCandidateListener;
|
|
124
|
-
/**
|
|
125
|
-
* Starts the process of doing UDP and TCP reachability checks on the media cluster.
|
|
126
|
-
* XTLS reachability checking is not supported.
|
|
127
|
-
*
|
|
128
|
-
* @returns {Promise}
|
|
129
|
-
*/
|
|
130
|
-
start(): Promise<ClusterReachabilityResult>;
|
|
131
|
-
/**
|
|
132
|
-
* Starts the process of gathering ICE candidates
|
|
133
|
-
*
|
|
134
|
-
* @returns {Promise} promise that's resolved once reachability checks for this cluster are completed or timeout is reached
|
|
135
|
-
*/
|
|
136
|
-
private gatherIceCandidates;
|
|
137
59
|
}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import { IP_VERSION } from '../constants';
|
|
1
|
+
import { IP_VERSION, Enum } from '../constants';
|
|
2
|
+
export type Protocol = 'udp' | 'tcp' | 'xtls';
|
|
3
|
+
/**
|
|
4
|
+
* Events emitted by ReachabilityPeerConnection
|
|
5
|
+
*/
|
|
6
|
+
export declare const ReachabilityPeerConnectionEvents: {
|
|
7
|
+
readonly resultReady: "resultReady";
|
|
8
|
+
readonly clientMediaIpsUpdated: "clientMediaIpsUpdated";
|
|
9
|
+
readonly natTypeUpdated: "natTypeUpdated";
|
|
10
|
+
readonly reachedSubnets: "reachedSubnets";
|
|
11
|
+
};
|
|
12
|
+
export type ReachabilityPeerConnectionEvents = Enum<typeof ReachabilityPeerConnectionEvents>;
|
|
2
13
|
export type TransportResult = {
|
|
3
14
|
result: 'reachable' | 'unreachable' | 'untested';
|
|
4
15
|
latencyInMilliseconds?: number;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ClusterNode } from './request';
|
|
2
|
+
import EventsScope from '../common/events/events-scope';
|
|
3
|
+
import { ClusterReachabilityResult } from './reachability.types';
|
|
4
|
+
/**
|
|
5
|
+
* A class to handle RTCPeerConnection lifecycle and ICE candidate gathering for reachability checks.
|
|
6
|
+
* It will do all the work like PeerConnection lifecycle, candidate processing, result management, and event emission.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReachabilityPeerConnection extends EventsScope {
|
|
9
|
+
numUdpUrls: number;
|
|
10
|
+
numTcpUrls: number;
|
|
11
|
+
numXTlsUrls: number;
|
|
12
|
+
private pc;
|
|
13
|
+
private defer;
|
|
14
|
+
private startTimestamp;
|
|
15
|
+
private srflxIceCandidates;
|
|
16
|
+
private clusterName;
|
|
17
|
+
private result;
|
|
18
|
+
private emittedSubnets;
|
|
19
|
+
/**
|
|
20
|
+
* Constructor for ReachabilityPeerConnection
|
|
21
|
+
* @param {string} clusterName name of the cluster
|
|
22
|
+
* @param {ClusterNode} clusterInfo information about the media cluster
|
|
23
|
+
*/
|
|
24
|
+
constructor(clusterName: string, clusterInfo: ClusterNode);
|
|
25
|
+
/**
|
|
26
|
+
* Gets total elapsed time, can be called only after start() is called
|
|
27
|
+
* @returns {number} Milliseconds
|
|
28
|
+
*/
|
|
29
|
+
private getElapsedTime;
|
|
30
|
+
/**
|
|
31
|
+
* Generate peerConnection config settings
|
|
32
|
+
* @param {ClusterNode} cluster
|
|
33
|
+
* @returns {RTCConfiguration} peerConnectionConfig
|
|
34
|
+
*/
|
|
35
|
+
private static buildPeerConnectionConfig;
|
|
36
|
+
/**
|
|
37
|
+
* Creates an RTCPeerConnection
|
|
38
|
+
* @param {ClusterNode} clusterInfo information about the media cluster
|
|
39
|
+
* @returns {RTCPeerConnection|null} peerConnection
|
|
40
|
+
*/
|
|
41
|
+
private createPeerConnection;
|
|
42
|
+
/**
|
|
43
|
+
* @returns {ClusterReachabilityResult} reachability result for this instance
|
|
44
|
+
*/
|
|
45
|
+
getResult(): ClusterReachabilityResult;
|
|
46
|
+
/**
|
|
47
|
+
* Closes the peerConnection
|
|
48
|
+
* @returns {void}
|
|
49
|
+
*/
|
|
50
|
+
private closePeerConnection;
|
|
51
|
+
/**
|
|
52
|
+
* Resolves the defer, indicating that reachability checks for this cluster are completed
|
|
53
|
+
*
|
|
54
|
+
* @returns {void}
|
|
55
|
+
*/
|
|
56
|
+
private finishReachabilityCheck;
|
|
57
|
+
/**
|
|
58
|
+
* Aborts the cluster reachability checks by closing the peer connection
|
|
59
|
+
*
|
|
60
|
+
* @returns {void}
|
|
61
|
+
*/
|
|
62
|
+
abort(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Adds public IP (client media IPs)
|
|
65
|
+
* @param {string} protocol
|
|
66
|
+
* @param {string} publicIp
|
|
67
|
+
* @returns {void}
|
|
68
|
+
*/
|
|
69
|
+
private addPublicIp;
|
|
70
|
+
/**
|
|
71
|
+
* Registers a listener for the iceGatheringStateChange event
|
|
72
|
+
*
|
|
73
|
+
* @returns {void}
|
|
74
|
+
*/
|
|
75
|
+
private registerIceGatheringStateChangeListener;
|
|
76
|
+
/**
|
|
77
|
+
* Saves the latency in the result for the given protocol and marks it as reachable,
|
|
78
|
+
* emits the "resultReady" event if this is the first result for that protocol,
|
|
79
|
+
* emits the "clientMediaIpsUpdated" event if we already had a result and only found
|
|
80
|
+
* a new client IP
|
|
81
|
+
*
|
|
82
|
+
* @param {string} protocol
|
|
83
|
+
* @param {number} latency
|
|
84
|
+
* @param {string|null} [publicIp]
|
|
85
|
+
* @param {string|null} [serverIp]
|
|
86
|
+
* @returns {void}
|
|
87
|
+
*/
|
|
88
|
+
private saveResult;
|
|
89
|
+
/**
|
|
90
|
+
* Determines NAT type by analyzing server reflexive candidate patterns
|
|
91
|
+
* @param {RTCIceCandidate} candidate server reflexive candidate
|
|
92
|
+
* @returns {void}
|
|
93
|
+
*/
|
|
94
|
+
private determineNatTypeForSrflxCandidate;
|
|
95
|
+
/**
|
|
96
|
+
* Registers a listener for the icecandidate event
|
|
97
|
+
*
|
|
98
|
+
* @returns {void}
|
|
99
|
+
*/
|
|
100
|
+
private registerIceCandidateListener;
|
|
101
|
+
/**
|
|
102
|
+
* Starts the process of doing UDP, TCP, and XTLS reachability checks.
|
|
103
|
+
* @returns {Promise<ClusterReachabilityResult>}
|
|
104
|
+
*/
|
|
105
|
+
start(): Promise<ClusterReachabilityResult>;
|
|
106
|
+
/**
|
|
107
|
+
* Starts the process of gathering ICE candidates
|
|
108
|
+
* @returns {Promise} promise that's resolved once reachability checks are completed or timeout is reached
|
|
109
|
+
*/
|
|
110
|
+
private gatherIceCandidates;
|
|
111
|
+
}
|
|
@@ -21,7 +21,7 @@ var WebinarCollection = /*#__PURE__*/function () {
|
|
|
21
21
|
(0, _defineProperty2.default)(this, "mainIndex", 'sessionId');
|
|
22
22
|
this.webinarInfo = {};
|
|
23
23
|
}
|
|
24
|
-
(0, _createClass2.default)(WebinarCollection, [{
|
|
24
|
+
return (0, _createClass2.default)(WebinarCollection, [{
|
|
25
25
|
key: "set",
|
|
26
26
|
value: function set(id, info) {
|
|
27
27
|
this.webinarInfo[id] = info;
|
|
@@ -37,7 +37,6 @@ var WebinarCollection = /*#__PURE__*/function () {
|
|
|
37
37
|
return this.webinarInfo[id];
|
|
38
38
|
}
|
|
39
39
|
}]);
|
|
40
|
-
return WebinarCollection;
|
|
41
40
|
}();
|
|
42
41
|
var _default = exports.default = WebinarCollection;
|
|
43
42
|
//# sourceMappingURL=collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","WebinarCollection","_classCallCheck2","default","_defineProperty2","MEETINGS","webinarInfo","_createClass2","key","value","set","id","info","get","_default","exports"],"sources":["collection.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2023 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {MEETINGS} from '../constants';\n\nclass WebinarCollection {\n webinarInfo: any;\n\n namespace = MEETINGS;\n\n mainIndex = 'sessionId';\n\n constructor() {\n this.webinarInfo = {};\n }\n\n set(id, info) {\n this.webinarInfo[id] = info;\n }\n\n /**\n * @param {String} id\n * @returns {Member}\n */\n get(id: string) {\n return this.webinarInfo[id];\n }\n}\n\nexport default WebinarCollection;\n"],"mappings":";;;;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAJA;AACA;AACA;AAFA,IAMMC,iBAAiB;EAOrB,SAAAA,kBAAA,EAAc;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAF,iBAAA;IAAA,IAAAG,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA,qBAJFE,mBAAQ;IAAA,IAAAD,gBAAA,CAAAD,OAAA,qBAER,WAAW;IAGrB,IAAI,CAACG,WAAW,GAAG,CAAC,CAAC;EACvB;EAAC,
|
|
1
|
+
{"version":3,"names":["_constants","require","WebinarCollection","_classCallCheck2","default","_defineProperty2","MEETINGS","webinarInfo","_createClass2","key","value","set","id","info","get","_default","exports"],"sources":["collection.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2023 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {MEETINGS} from '../constants';\n\nclass WebinarCollection {\n webinarInfo: any;\n\n namespace = MEETINGS;\n\n mainIndex = 'sessionId';\n\n constructor() {\n this.webinarInfo = {};\n }\n\n set(id, info) {\n this.webinarInfo[id] = info;\n }\n\n /**\n * @param {String} id\n * @returns {Member}\n */\n get(id: string) {\n return this.webinarInfo[id];\n }\n}\n\nexport default WebinarCollection;\n"],"mappings":";;;;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAJA;AACA;AACA;AAFA,IAMMC,iBAAiB;EAOrB,SAAAA,kBAAA,EAAc;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAF,iBAAA;IAAA,IAAAG,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA,qBAJFE,mBAAQ;IAAA,IAAAD,gBAAA,CAAAD,OAAA,qBAER,WAAW;IAGrB,IAAI,CAACG,WAAW,GAAG,CAAC,CAAC;EACvB;EAAC,WAAAC,aAAA,CAAAJ,OAAA,EAAAF,iBAAA;IAAAO,GAAA;IAAAC,KAAA,EAED,SAAAC,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAE;MACZ,IAAI,CAACN,WAAW,CAACK,EAAE,CAAC,GAAGC,IAAI;IAC7B;;IAEA;AACF;AACA;AACA;EAHE;IAAAJ,GAAA;IAAAC,KAAA,EAIA,SAAAI,GAAGA,CAACF,EAAU,EAAE;MACd,OAAO,IAAI,CAACL,WAAW,CAACK,EAAE,CAAC;IAC7B;EAAC;AAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAZ,OAAA,GAGYF,iBAAiB","ignoreList":[]}
|