@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
|
@@ -24,10 +24,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/hel
|
|
|
24
24
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
25
25
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
26
26
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
27
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
28
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
29
27
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
30
28
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
29
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
31
30
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
32
31
|
var _lodash = require("lodash");
|
|
33
32
|
var _common = require("@webex/common");
|
|
@@ -42,8 +41,8 @@ var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
|
42
41
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
43
42
|
function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44
43
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45
|
-
function
|
|
46
|
-
function _isNativeReflectConstruct() {
|
|
44
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
45
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*!
|
|
47
46
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
48
47
|
*/ /* eslint-disable class-methods-use-this */
|
|
49
48
|
// timeouts in seconds
|
|
@@ -56,8 +55,6 @@ var OVERALL_TIMEOUT = 15;
|
|
|
56
55
|
* @export
|
|
57
56
|
*/
|
|
58
57
|
var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
59
|
-
(0, _inherits2.default)(Reachability, _EventsScope);
|
|
60
|
-
var _super = _createSuper(Reachability);
|
|
61
58
|
/**
|
|
62
59
|
* Creates an instance of Reachability.
|
|
63
60
|
* @param {object} webex
|
|
@@ -66,18 +63,18 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
66
63
|
function Reachability(webex) {
|
|
67
64
|
var _this;
|
|
68
65
|
(0, _classCallCheck2.default)(this, Reachability);
|
|
69
|
-
_this =
|
|
70
|
-
(0, _defineProperty2.default)(
|
|
71
|
-
(0, _defineProperty2.default)(
|
|
72
|
-
(0, _defineProperty2.default)(
|
|
73
|
-
(0, _defineProperty2.default)(
|
|
74
|
-
(0, _defineProperty2.default)(
|
|
75
|
-
(0, _defineProperty2.default)(
|
|
76
|
-
(0, _defineProperty2.default)(
|
|
77
|
-
(0, _defineProperty2.default)(
|
|
78
|
-
(0, _defineProperty2.default)(
|
|
79
|
-
(0, _defineProperty2.default)(
|
|
80
|
-
(0, _defineProperty2.default)(
|
|
66
|
+
_this = _callSuper(this, Reachability);
|
|
67
|
+
(0, _defineProperty2.default)(_this, "namespace", _constants.REACHABILITY.namespace);
|
|
68
|
+
(0, _defineProperty2.default)(_this, "webex", void 0);
|
|
69
|
+
(0, _defineProperty2.default)(_this, "reachabilityRequest", void 0);
|
|
70
|
+
(0, _defineProperty2.default)(_this, "clusterReachability", void 0);
|
|
71
|
+
(0, _defineProperty2.default)(_this, "minRequiredClusters", void 0);
|
|
72
|
+
(0, _defineProperty2.default)(_this, "orpheusApiVersion", void 0);
|
|
73
|
+
(0, _defineProperty2.default)(_this, "reachabilityDefer", void 0);
|
|
74
|
+
(0, _defineProperty2.default)(_this, "vmnTimer", void 0);
|
|
75
|
+
(0, _defineProperty2.default)(_this, "publicCloudTimer", void 0);
|
|
76
|
+
(0, _defineProperty2.default)(_this, "overallTimer", void 0);
|
|
77
|
+
(0, _defineProperty2.default)(_this, "expectedResultsCount", {
|
|
81
78
|
videoMesh: {
|
|
82
79
|
udp: 0
|
|
83
80
|
},
|
|
@@ -87,7 +84,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
87
84
|
xtls: 0
|
|
88
85
|
}
|
|
89
86
|
});
|
|
90
|
-
(0, _defineProperty2.default)(
|
|
87
|
+
(0, _defineProperty2.default)(_this, "resultsCount", {
|
|
91
88
|
videoMesh: {
|
|
92
89
|
udp: 0
|
|
93
90
|
},
|
|
@@ -97,10 +94,10 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
97
94
|
xtls: 0
|
|
98
95
|
}
|
|
99
96
|
});
|
|
100
|
-
(0, _defineProperty2.default)(
|
|
101
|
-
(0, _defineProperty2.default)(
|
|
102
|
-
(0, _defineProperty2.default)(
|
|
103
|
-
(0, _defineProperty2.default)(
|
|
97
|
+
(0, _defineProperty2.default)(_this, "startTime", undefined);
|
|
98
|
+
(0, _defineProperty2.default)(_this, "totalDuration", undefined);
|
|
99
|
+
(0, _defineProperty2.default)(_this, "natType", _reachability.NatType.Unknown);
|
|
100
|
+
(0, _defineProperty2.default)(_this, "lastTrigger", void 0);
|
|
104
101
|
_this.webex = webex;
|
|
105
102
|
|
|
106
103
|
/**
|
|
@@ -123,24 +120,26 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
123
120
|
* @private
|
|
124
121
|
* @returns {Promise<{clusters: ClusterList, joinCookie: any}>}
|
|
125
122
|
*/
|
|
126
|
-
(0,
|
|
123
|
+
(0, _inherits2.default)(Reachability, _EventsScope);
|
|
124
|
+
return (0, _createClass2.default)(Reachability, [{
|
|
127
125
|
key: "getClusters",
|
|
128
126
|
value: (function () {
|
|
129
|
-
var _getClusters = (0, _asyncToGenerator2.default)(
|
|
127
|
+
var _getClusters = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(trigger, previousReport) {
|
|
130
128
|
var isRetry,
|
|
131
129
|
_yield$this$reachabil,
|
|
132
130
|
clusters,
|
|
133
131
|
joinCookie,
|
|
134
132
|
discoveryOptions,
|
|
135
|
-
_args = arguments
|
|
136
|
-
|
|
133
|
+
_args = arguments,
|
|
134
|
+
_t;
|
|
135
|
+
return _regenerator.default.wrap(function (_context) {
|
|
137
136
|
while (1) switch (_context.prev = _context.next) {
|
|
138
137
|
case 0:
|
|
139
138
|
isRetry = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
|
|
140
139
|
_context.prev = 1;
|
|
141
|
-
_context.next =
|
|
140
|
+
_context.next = 2;
|
|
142
141
|
return this.reachabilityRequest.getClusters(trigger, _util.default.getIpVersion(this.webex), previousReport);
|
|
143
|
-
case
|
|
142
|
+
case 2:
|
|
144
143
|
_yield$this$reachabil = _context.sent;
|
|
145
144
|
clusters = _yield$this$reachabil.clusters;
|
|
146
145
|
joinCookie = _yield$this$reachabil.joinCookie;
|
|
@@ -149,29 +148,29 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
149
148
|
this.orpheusApiVersion = discoveryOptions === null || discoveryOptions === void 0 ? void 0 : discoveryOptions['report-version'];
|
|
150
149
|
|
|
151
150
|
// @ts-ignore
|
|
152
|
-
_context.next =
|
|
151
|
+
_context.next = 3;
|
|
153
152
|
return this.webex.boundedStorage.put(this.namespace, _constants.REACHABILITY.localStorageJoinCookie, (0, _stringify.default)(joinCookie));
|
|
154
|
-
case
|
|
153
|
+
case 3:
|
|
155
154
|
return _context.abrupt("return", {
|
|
156
155
|
clusters: clusters,
|
|
157
156
|
joinCookie: joinCookie
|
|
158
157
|
});
|
|
159
|
-
case
|
|
160
|
-
_context.prev =
|
|
161
|
-
|
|
158
|
+
case 4:
|
|
159
|
+
_context.prev = 4;
|
|
160
|
+
_t = _context["catch"](1);
|
|
162
161
|
if (!isRetry) {
|
|
163
|
-
_context.next =
|
|
162
|
+
_context.next = 5;
|
|
164
163
|
break;
|
|
165
164
|
}
|
|
166
|
-
throw
|
|
167
|
-
case
|
|
168
|
-
_loggerProxy.default.logger.error("Reachability:index#getClusters --> Failed with error: ".concat(
|
|
165
|
+
throw _t;
|
|
166
|
+
case 5:
|
|
167
|
+
_loggerProxy.default.logger.error("Reachability:index#getClusters --> Failed with error: ".concat(_t, ", retrying..."));
|
|
169
168
|
return _context.abrupt("return", this.getClusters(trigger, previousReport, true));
|
|
170
|
-
case
|
|
169
|
+
case 6:
|
|
171
170
|
case "end":
|
|
172
171
|
return _context.stop();
|
|
173
172
|
}
|
|
174
|
-
}, _callee, this, [[1,
|
|
173
|
+
}, _callee, this, [[1, 4]]);
|
|
175
174
|
}));
|
|
176
175
|
function getClusters(_x, _x2) {
|
|
177
176
|
return _getClusters.apply(this, arguments);
|
|
@@ -222,46 +221,46 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
222
221
|
}, {
|
|
223
222
|
key: "gatherReachability",
|
|
224
223
|
value: (function () {
|
|
225
|
-
var _gatherReachability = (0, _asyncToGenerator2.default)(
|
|
226
|
-
var _yield$this$getCluste, clusters;
|
|
227
|
-
return _regenerator.default.wrap(function
|
|
224
|
+
var _gatherReachability = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(trigger) {
|
|
225
|
+
var _yield$this$getCluste, clusters, _t2;
|
|
226
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
228
227
|
while (1) switch (_context2.prev = _context2.next) {
|
|
229
228
|
case 0:
|
|
230
229
|
if (this.webex.config.meetings.enableReachabilityChecks) {
|
|
231
|
-
_context2.next =
|
|
230
|
+
_context2.next = 1;
|
|
232
231
|
break;
|
|
233
232
|
}
|
|
234
233
|
throw new Error('enableReachabilityChecks is disabled in config');
|
|
235
|
-
case
|
|
236
|
-
_context2.prev =
|
|
234
|
+
case 1:
|
|
235
|
+
_context2.prev = 1;
|
|
237
236
|
this.lastTrigger = trigger;
|
|
238
237
|
|
|
239
238
|
// kick off ip version detection. We don't await it, as we don't want to waste time
|
|
240
239
|
// and if it fails, that's ok we can still carry on
|
|
241
240
|
// @ts-ignore
|
|
242
241
|
this.webex.internal.device.ipNetworkDetector.detect(true);
|
|
243
|
-
_context2.next =
|
|
242
|
+
_context2.next = 2;
|
|
244
243
|
return this.getClusters('startup');
|
|
245
|
-
case
|
|
244
|
+
case 2:
|
|
246
245
|
_yield$this$getCluste = _context2.sent;
|
|
247
246
|
clusters = _yield$this$getCluste.clusters;
|
|
248
247
|
this.reachabilityDefer = new _common.Defer();
|
|
249
248
|
|
|
250
249
|
// Perform Reachability Check
|
|
251
|
-
_context2.next =
|
|
250
|
+
_context2.next = 3;
|
|
252
251
|
return this.performReachabilityChecks(clusters);
|
|
253
|
-
case
|
|
252
|
+
case 3:
|
|
254
253
|
return _context2.abrupt("return", this.reachabilityDefer.promise);
|
|
255
|
-
case
|
|
256
|
-
_context2.prev =
|
|
257
|
-
|
|
258
|
-
_loggerProxy.default.logger.error("Reachability:index#gatherReachability --> Error:",
|
|
254
|
+
case 4:
|
|
255
|
+
_context2.prev = 4;
|
|
256
|
+
_t2 = _context2["catch"](1);
|
|
257
|
+
_loggerProxy.default.logger.error("Reachability:index#gatherReachability --> Error:", _t2);
|
|
259
258
|
return _context2.abrupt("return", {});
|
|
260
|
-
case
|
|
259
|
+
case 5:
|
|
261
260
|
case "end":
|
|
262
261
|
return _context2.stop();
|
|
263
262
|
}
|
|
264
|
-
}, _callee2, this, [[
|
|
263
|
+
}, _callee2, this, [[1, 4]]);
|
|
265
264
|
}));
|
|
266
265
|
function gatherReachability(_x3) {
|
|
267
266
|
return _gatherReachability.apply(this, arguments);
|
|
@@ -277,14 +276,14 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
277
276
|
}, {
|
|
278
277
|
key: "getJoinCookie",
|
|
279
278
|
value: (function () {
|
|
280
|
-
var _getJoinCookie = (0, _asyncToGenerator2.default)(
|
|
279
|
+
var _getJoinCookie = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
281
280
|
var joinCookieRaw, joinCookie;
|
|
282
|
-
return _regenerator.default.wrap(function
|
|
281
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
283
282
|
while (1) switch (_context3.prev = _context3.next) {
|
|
284
283
|
case 0:
|
|
285
|
-
_context3.next =
|
|
284
|
+
_context3.next = 1;
|
|
286
285
|
return this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageJoinCookie).catch(function () {});
|
|
287
|
-
case
|
|
286
|
+
case 1:
|
|
288
287
|
joinCookieRaw = _context3.sent;
|
|
289
288
|
if (joinCookieRaw) {
|
|
290
289
|
try {
|
|
@@ -294,7 +293,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
294
293
|
}
|
|
295
294
|
}
|
|
296
295
|
return _context3.abrupt("return", joinCookie);
|
|
297
|
-
case
|
|
296
|
+
case 2:
|
|
298
297
|
case "end":
|
|
299
298
|
return _context3.stop();
|
|
300
299
|
}
|
|
@@ -315,27 +314,27 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
315
314
|
}, {
|
|
316
315
|
key: "getReachabilityReport",
|
|
317
316
|
value: (function () {
|
|
318
|
-
var _getReachabilityReport = (0, _asyncToGenerator2.default)(
|
|
317
|
+
var _getReachabilityReport = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
319
318
|
var reachabilityResult, joinCookie;
|
|
320
|
-
return _regenerator.default.wrap(function
|
|
319
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
321
320
|
while (1) switch (_context4.prev = _context4.next) {
|
|
322
321
|
case 0:
|
|
323
|
-
_context4.next =
|
|
322
|
+
_context4.next = 1;
|
|
324
323
|
return this.getReachabilityResults();
|
|
325
|
-
case
|
|
324
|
+
case 1:
|
|
326
325
|
reachabilityResult = _context4.sent;
|
|
327
|
-
_context4.next =
|
|
326
|
+
_context4.next = 2;
|
|
328
327
|
return this.getJoinCookie();
|
|
329
|
-
case
|
|
328
|
+
case 2:
|
|
330
329
|
joinCookie = _context4.sent;
|
|
331
330
|
if (this.orpheusApiVersion) {
|
|
332
|
-
_context4.next =
|
|
331
|
+
_context4.next = 3;
|
|
333
332
|
break;
|
|
334
333
|
}
|
|
335
334
|
return _context4.abrupt("return", {
|
|
336
335
|
reachability: reachabilityResult
|
|
337
336
|
});
|
|
338
|
-
case
|
|
337
|
+
case 3:
|
|
339
338
|
return _context4.abrupt("return", {
|
|
340
339
|
reachability: {
|
|
341
340
|
version: 1,
|
|
@@ -351,7 +350,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
351
350
|
},
|
|
352
351
|
joinCookie: joinCookie
|
|
353
352
|
});
|
|
354
|
-
case
|
|
353
|
+
case 4:
|
|
355
354
|
case "end":
|
|
356
355
|
return _context4.stop();
|
|
357
356
|
}
|
|
@@ -373,39 +372,39 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
373
372
|
}, {
|
|
374
373
|
key: "gatherReachabilityFallback",
|
|
375
374
|
value: (function () {
|
|
376
|
-
var _gatherReachabilityFallback = (0, _asyncToGenerator2.default)(
|
|
377
|
-
var reachabilityReport, _yield$this$getCluste2, clusters;
|
|
378
|
-
return _regenerator.default.wrap(function
|
|
375
|
+
var _gatherReachabilityFallback = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
376
|
+
var reachabilityReport, _yield$this$getCluste2, clusters, _t3;
|
|
377
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
379
378
|
while (1) switch (_context5.prev = _context5.next) {
|
|
380
379
|
case 0:
|
|
381
380
|
_context5.prev = 0;
|
|
382
|
-
_context5.next =
|
|
381
|
+
_context5.next = 1;
|
|
383
382
|
return this.getReachabilityReport();
|
|
384
|
-
case
|
|
383
|
+
case 1:
|
|
385
384
|
reachabilityReport = _context5.sent;
|
|
386
|
-
_context5.next =
|
|
385
|
+
_context5.next = 2;
|
|
387
386
|
return this.getClusters('early-call/no-min-reached', reachabilityReport);
|
|
388
|
-
case
|
|
387
|
+
case 2:
|
|
389
388
|
_yield$this$getCluste2 = _context5.sent;
|
|
390
389
|
clusters = _yield$this$getCluste2.clusters;
|
|
391
390
|
// stop all previous reachability checks that might still be going on in the background
|
|
392
391
|
this.abortCurrentChecks();
|
|
393
392
|
|
|
394
393
|
// Perform Reachability Check
|
|
395
|
-
_context5.next =
|
|
394
|
+
_context5.next = 3;
|
|
396
395
|
return this.performReachabilityChecks(clusters);
|
|
397
|
-
case
|
|
398
|
-
_context5.next =
|
|
396
|
+
case 3:
|
|
397
|
+
_context5.next = 5;
|
|
399
398
|
break;
|
|
400
|
-
case
|
|
401
|
-
_context5.prev =
|
|
402
|
-
|
|
403
|
-
_loggerProxy.default.logger.error("Reachability:index#gatherReachabilityFallback --> Error:",
|
|
404
|
-
case
|
|
399
|
+
case 4:
|
|
400
|
+
_context5.prev = 4;
|
|
401
|
+
_t3 = _context5["catch"](0);
|
|
402
|
+
_loggerProxy.default.logger.error("Reachability:index#gatherReachabilityFallback --> Error:", _t3);
|
|
403
|
+
case 5:
|
|
405
404
|
case "end":
|
|
406
405
|
return _context5.stop();
|
|
407
406
|
}
|
|
408
|
-
}, _callee5, this, [[0,
|
|
407
|
+
}, _callee5, this, [[0, 4]]);
|
|
409
408
|
}));
|
|
410
409
|
function gatherReachabilityFallback() {
|
|
411
410
|
return _gatherReachabilityFallback.apply(this, arguments);
|
|
@@ -444,9 +443,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
444
443
|
}, {
|
|
445
444
|
key: "getReachabilityMetrics",
|
|
446
445
|
value: (function () {
|
|
447
|
-
var _getReachabilityMetrics = (0, _asyncToGenerator2.default)(
|
|
448
|
-
var stats, updateStats, resultsJson, results;
|
|
449
|
-
return _regenerator.default.wrap(function
|
|
446
|
+
var _getReachabilityMetrics = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
447
|
+
var stats, updateStats, resultsJson, results, _t4;
|
|
448
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
450
449
|
while (1) switch (_context6.prev = _context6.next) {
|
|
451
450
|
case 0:
|
|
452
451
|
stats = {
|
|
@@ -478,29 +477,29 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
478
477
|
stats["reachability_".concat(clusterType, "_xtls_").concat(_outcome2)] += 1;
|
|
479
478
|
}
|
|
480
479
|
};
|
|
481
|
-
_context6.prev =
|
|
482
|
-
_context6.next =
|
|
480
|
+
_context6.prev = 1;
|
|
481
|
+
_context6.next = 2;
|
|
483
482
|
return this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageResult);
|
|
484
|
-
case
|
|
483
|
+
case 2:
|
|
485
484
|
resultsJson = _context6.sent;
|
|
486
485
|
results = JSON.parse(resultsJson);
|
|
487
486
|
(0, _values.default)(results).forEach(function (result) {
|
|
488
487
|
updateStats(result.isVideoMesh ? 'vmn' : 'public', result);
|
|
489
488
|
});
|
|
490
|
-
_context6.next =
|
|
489
|
+
_context6.next = 4;
|
|
491
490
|
break;
|
|
492
|
-
case
|
|
493
|
-
_context6.prev =
|
|
494
|
-
|
|
491
|
+
case 3:
|
|
492
|
+
_context6.prev = 3;
|
|
493
|
+
_t4 = _context6["catch"](1);
|
|
495
494
|
// empty storage, that's ok
|
|
496
|
-
_loggerProxy.default.logger.warn('Roap:request#getReachabilityMetrics --> Error parsing reachability data: ',
|
|
497
|
-
case
|
|
495
|
+
_loggerProxy.default.logger.warn('Roap:request#getReachabilityMetrics --> Error parsing reachability data: ', _t4);
|
|
496
|
+
case 4:
|
|
498
497
|
return _context6.abrupt("return", stats);
|
|
499
|
-
case
|
|
498
|
+
case 5:
|
|
500
499
|
case "end":
|
|
501
500
|
return _context6.stop();
|
|
502
501
|
}
|
|
503
|
-
}, _callee6, this, [[
|
|
502
|
+
}, _callee6, this, [[1, 3]]);
|
|
504
503
|
}));
|
|
505
504
|
function getReachabilityMetrics() {
|
|
506
505
|
return _getReachabilityMetrics.apply(this, arguments);
|
|
@@ -519,9 +518,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
519
518
|
var output = {};
|
|
520
519
|
for (var _i = 0, _Object$entries = (0, _entries.default)(transportResult); _i < _Object$entries.length; _i++) {
|
|
521
520
|
var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i], 2),
|
|
522
|
-
|
|
521
|
+
key = _Object$entries$_i[0],
|
|
523
522
|
value = _Object$entries$_i[1];
|
|
524
|
-
switch (
|
|
523
|
+
switch (key) {
|
|
525
524
|
case 'result':
|
|
526
525
|
switch (value) {
|
|
527
526
|
case 'reachable':
|
|
@@ -539,7 +538,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
539
538
|
output.latencyInMilliseconds = value.toString();
|
|
540
539
|
break;
|
|
541
540
|
default:
|
|
542
|
-
output[
|
|
541
|
+
output[key] = value;
|
|
543
542
|
}
|
|
544
543
|
}
|
|
545
544
|
return output;
|
|
@@ -553,16 +552,16 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
553
552
|
}, {
|
|
554
553
|
key: "getReachabilityResults",
|
|
555
554
|
value: (function () {
|
|
556
|
-
var _getReachabilityResults = (0, _asyncToGenerator2.default)(
|
|
555
|
+
var _getReachabilityResults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
557
556
|
var _this2 = this;
|
|
558
|
-
var results, resultsJson, allClusterResults;
|
|
559
|
-
return _regenerator.default.wrap(function
|
|
557
|
+
var results, resultsJson, allClusterResults, _t5;
|
|
558
|
+
return _regenerator.default.wrap(function (_context7) {
|
|
560
559
|
while (1) switch (_context7.prev = _context7.next) {
|
|
561
560
|
case 0:
|
|
562
561
|
_context7.prev = 0;
|
|
563
|
-
_context7.next =
|
|
562
|
+
_context7.next = 1;
|
|
564
563
|
return this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageResult);
|
|
565
|
-
case
|
|
564
|
+
case 1:
|
|
566
565
|
resultsJson = _context7.sent;
|
|
567
566
|
allClusterResults = JSON.parse(resultsJson);
|
|
568
567
|
results = (0, _lodash.mapValues)(allClusterResults, function (clusterResult) {
|
|
@@ -578,20 +577,20 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
578
577
|
})
|
|
579
578
|
};
|
|
580
579
|
});
|
|
581
|
-
_context7.next =
|
|
580
|
+
_context7.next = 3;
|
|
582
581
|
break;
|
|
583
|
-
case
|
|
584
|
-
_context7.prev =
|
|
585
|
-
|
|
582
|
+
case 2:
|
|
583
|
+
_context7.prev = 2;
|
|
584
|
+
_t5 = _context7["catch"](0);
|
|
586
585
|
// empty storage, that's ok
|
|
587
|
-
_loggerProxy.default.logger.warn('Reachability:index#getReachabilityResults --> Error parsing reachability data: ',
|
|
588
|
-
case
|
|
586
|
+
_loggerProxy.default.logger.warn('Reachability:index#getReachabilityResults --> Error parsing reachability data: ', _t5);
|
|
587
|
+
case 3:
|
|
589
588
|
return _context7.abrupt("return", results);
|
|
590
|
-
case
|
|
589
|
+
case 4:
|
|
591
590
|
case "end":
|
|
592
591
|
return _context7.stop();
|
|
593
592
|
}
|
|
594
|
-
}, _callee7, this, [[0,
|
|
593
|
+
}, _callee7, this, [[0, 2]]);
|
|
595
594
|
}));
|
|
596
595
|
function getReachabilityResults() {
|
|
597
596
|
return _getReachabilityResults.apply(this, arguments);
|
|
@@ -608,15 +607,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
608
607
|
}, {
|
|
609
608
|
key: "isAnyPublicClusterReachable",
|
|
610
609
|
value: (function () {
|
|
611
|
-
var _isAnyPublicClusterReachable = (0, _asyncToGenerator2.default)(
|
|
610
|
+
var _isAnyPublicClusterReachable = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
612
611
|
var reachable, reachabilityData, reachabilityResults;
|
|
613
|
-
return _regenerator.default.wrap(function
|
|
612
|
+
return _regenerator.default.wrap(function (_context8) {
|
|
614
613
|
while (1) switch (_context8.prev = _context8.next) {
|
|
615
614
|
case 0:
|
|
616
615
|
reachable = false; // @ts-ignore
|
|
617
|
-
_context8.next =
|
|
616
|
+
_context8.next = 1;
|
|
618
617
|
return this.webex.boundedStorage.get(this.namespace, _constants.REACHABILITY.localStorageResult).catch(function () {});
|
|
619
|
-
case
|
|
618
|
+
case 1:
|
|
620
619
|
reachabilityData = _context8.sent;
|
|
621
620
|
if (reachabilityData) {
|
|
622
621
|
try {
|
|
@@ -630,7 +629,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
630
629
|
}
|
|
631
630
|
}
|
|
632
631
|
return _context8.abrupt("return", reachable);
|
|
633
|
-
case
|
|
632
|
+
case 2:
|
|
634
633
|
case "end":
|
|
635
634
|
return _context8.stop();
|
|
636
635
|
}
|
|
@@ -655,15 +654,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
655
654
|
}, {
|
|
656
655
|
key: "isWebexMediaBackendUnreachable",
|
|
657
656
|
value: (function () {
|
|
658
|
-
var _isWebexMediaBackendUnreachable = (0, _asyncToGenerator2.default)(
|
|
657
|
+
var _isWebexMediaBackendUnreachable = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
659
658
|
var unreachable, reachabilityData, reachabilityResults, protocols;
|
|
660
|
-
return _regenerator.default.wrap(function
|
|
659
|
+
return _regenerator.default.wrap(function (_context9) {
|
|
661
660
|
while (1) switch (_context9.prev = _context9.next) {
|
|
662
661
|
case 0:
|
|
663
662
|
unreachable = false; // @ts-ignore
|
|
664
|
-
_context9.next =
|
|
663
|
+
_context9.next = 1;
|
|
665
664
|
return this.webex.boundedStorage.get(this.namespace, _constants.REACHABILITY.localStorageResult).catch(function () {});
|
|
666
|
-
case
|
|
665
|
+
case 1:
|
|
667
666
|
reachabilityData = _context9.sent;
|
|
668
667
|
if (reachabilityData) {
|
|
669
668
|
try {
|
|
@@ -703,7 +702,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
703
702
|
}
|
|
704
703
|
}
|
|
705
704
|
return _context9.abrupt("return", unreachable);
|
|
706
|
-
case
|
|
705
|
+
case 2:
|
|
707
706
|
case "end":
|
|
708
707
|
return _context9.stop();
|
|
709
708
|
}
|
|
@@ -893,15 +892,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
893
892
|
}, {
|
|
894
893
|
key: "sendMetric",
|
|
895
894
|
value: (function () {
|
|
896
|
-
var _sendMetric = (0, _asyncToGenerator2.default)(
|
|
895
|
+
var _sendMetric = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0() {
|
|
897
896
|
var aborted,
|
|
898
897
|
results,
|
|
899
898
|
stats,
|
|
900
|
-
|
|
901
|
-
return _regenerator.default.wrap(function
|
|
902
|
-
while (1) switch (
|
|
899
|
+
_args0 = arguments;
|
|
900
|
+
return _regenerator.default.wrap(function (_context0) {
|
|
901
|
+
while (1) switch (_context0.prev = _context0.next) {
|
|
903
902
|
case 0:
|
|
904
|
-
aborted =
|
|
903
|
+
aborted = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : false;
|
|
905
904
|
results = [];
|
|
906
905
|
(0, _values.default)(this.clusterReachability).forEach(function (clusterReachability) {
|
|
907
906
|
results.push(_objectSpread(_objectSpread({}, clusterReachability.getResult()), {}, {
|
|
@@ -931,11 +930,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
931
930
|
trigger: this.lastTrigger
|
|
932
931
|
};
|
|
933
932
|
_metrics.default.sendBehavioralMetric(_constants2.default.REACHABILITY_COMPLETED, _metrics.default.prepareMetricFields(stats));
|
|
934
|
-
case
|
|
933
|
+
case 1:
|
|
935
934
|
case "end":
|
|
936
|
-
return
|
|
935
|
+
return _context0.stop();
|
|
937
936
|
}
|
|
938
|
-
},
|
|
937
|
+
}, _callee0, this);
|
|
939
938
|
}));
|
|
940
939
|
function sendMetric() {
|
|
941
940
|
return _sendMetric.apply(this, arguments);
|
|
@@ -991,17 +990,17 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
991
990
|
}, {
|
|
992
991
|
key: "storeResults",
|
|
993
992
|
value: (function () {
|
|
994
|
-
var _storeResults = (0, _asyncToGenerator2.default)(
|
|
995
|
-
return _regenerator.default.wrap(function
|
|
996
|
-
while (1) switch (
|
|
993
|
+
var _storeResults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1(results) {
|
|
994
|
+
return _regenerator.default.wrap(function (_context1) {
|
|
995
|
+
while (1) switch (_context1.prev = _context1.next) {
|
|
997
996
|
case 0:
|
|
998
|
-
|
|
997
|
+
_context1.next = 1;
|
|
999
998
|
return this.webex.boundedStorage.put(this.namespace, _constants.REACHABILITY.localStorageResult, (0, _stringify.default)(results));
|
|
1000
|
-
case
|
|
999
|
+
case 1:
|
|
1001
1000
|
case "end":
|
|
1002
|
-
return
|
|
1001
|
+
return _context1.stop();
|
|
1003
1002
|
}
|
|
1004
|
-
},
|
|
1003
|
+
}, _callee1, this);
|
|
1005
1004
|
}));
|
|
1006
1005
|
function storeResults(_x4) {
|
|
1007
1006
|
return _storeResults.apply(this, arguments);
|
|
@@ -1064,11 +1063,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1064
1063
|
}, {
|
|
1065
1064
|
key: "performReachabilityChecks",
|
|
1066
1065
|
value: (function () {
|
|
1067
|
-
var _performReachabilityChecks = (0, _asyncToGenerator2.default)(
|
|
1066
|
+
var _performReachabilityChecks = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13(clusterList) {
|
|
1068
1067
|
var _this4 = this;
|
|
1069
1068
|
var results, isFirstResult;
|
|
1070
|
-
return _regenerator.default.wrap(function
|
|
1071
|
-
while (1) switch (
|
|
1069
|
+
return _regenerator.default.wrap(function (_context13) {
|
|
1070
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
1072
1071
|
case 0:
|
|
1073
1072
|
results = {};
|
|
1074
1073
|
this.clusterReachability = {};
|
|
@@ -1126,11 +1125,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1126
1125
|
tcp: true,
|
|
1127
1126
|
xtls: true
|
|
1128
1127
|
}; // save the initialized results (in case we don't get any "resultReady" events at all)
|
|
1129
|
-
|
|
1128
|
+
_context13.next = 1;
|
|
1130
1129
|
return this.storeResults(results);
|
|
1131
|
-
case
|
|
1130
|
+
case 1:
|
|
1132
1131
|
if (!(!clusterList || !(0, _keys.default)(clusterList).length)) {
|
|
1133
|
-
|
|
1132
|
+
_context13.next = 2;
|
|
1134
1133
|
break;
|
|
1135
1134
|
}
|
|
1136
1135
|
// nothing to do, finish immediately
|
|
@@ -1139,8 +1138,8 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1139
1138
|
file: 'reachability',
|
|
1140
1139
|
function: 'performReachabilityChecks'
|
|
1141
1140
|
}, 'reachability:done', {});
|
|
1142
|
-
return
|
|
1143
|
-
case
|
|
1141
|
+
return _context13.abrupt("return");
|
|
1142
|
+
case 2:
|
|
1144
1143
|
this.startTimers();
|
|
1145
1144
|
|
|
1146
1145
|
// now start the reachability on all the clusters
|
|
@@ -1148,10 +1147,10 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1148
1147
|
var cluster = clusterList[key];
|
|
1149
1148
|
_this4.clusterReachability[key] = new _clusterReachability.ClusterReachability(key, cluster);
|
|
1150
1149
|
_this4.clusterReachability[key].on(_clusterReachability.Events.resultReady, /*#__PURE__*/function () {
|
|
1151
|
-
var _ref6 = (0, _asyncToGenerator2.default)(
|
|
1150
|
+
var _ref6 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10(data) {
|
|
1152
1151
|
var protocol, result, clientMediaIPs, latencyInMilliseconds, areAllResultsReady;
|
|
1153
|
-
return _regenerator.default.wrap(function
|
|
1154
|
-
while (1) switch (
|
|
1152
|
+
return _regenerator.default.wrap(function (_context10) {
|
|
1153
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1155
1154
|
case 0:
|
|
1156
1155
|
protocol = data.protocol, result = data.result, clientMediaIPs = data.clientMediaIPs, latencyInMilliseconds = data.latencyInMilliseconds;
|
|
1157
1156
|
if (isFirstResult[protocol]) {
|
|
@@ -1168,9 +1167,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1168
1167
|
results[key][protocol].result = result;
|
|
1169
1168
|
results[key][protocol].clientMediaIPs = clientMediaIPs;
|
|
1170
1169
|
results[key][protocol].latencyInMilliseconds = latencyInMilliseconds;
|
|
1171
|
-
|
|
1170
|
+
_context10.next = 1;
|
|
1172
1171
|
return _this4.storeResults(results);
|
|
1173
|
-
case
|
|
1172
|
+
case 1:
|
|
1174
1173
|
if (areAllResultsReady) {
|
|
1175
1174
|
_this4.clearTimer('overallTimer');
|
|
1176
1175
|
_this4.emit({
|
|
@@ -1181,11 +1180,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1181
1180
|
_loggerProxy.default.logger.log("Reachability:index#gatherReachability --> Reachability checks fully completed");
|
|
1182
1181
|
_this4.resolveReachabilityPromise();
|
|
1183
1182
|
}
|
|
1184
|
-
case
|
|
1183
|
+
case 2:
|
|
1185
1184
|
case "end":
|
|
1186
|
-
return
|
|
1185
|
+
return _context10.stop();
|
|
1187
1186
|
}
|
|
1188
|
-
},
|
|
1187
|
+
}, _callee10);
|
|
1189
1188
|
}));
|
|
1190
1189
|
return function (_x6) {
|
|
1191
1190
|
return _ref6.apply(this, arguments);
|
|
@@ -1194,34 +1193,34 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1194
1193
|
|
|
1195
1194
|
// clientMediaIps can be updated independently from the results, so we need to listen for them too
|
|
1196
1195
|
_this4.clusterReachability[key].on(_clusterReachability.Events.clientMediaIpsUpdated, /*#__PURE__*/function () {
|
|
1197
|
-
var _ref7 = (0, _asyncToGenerator2.default)(
|
|
1198
|
-
return _regenerator.default.wrap(function
|
|
1199
|
-
while (1) switch (
|
|
1196
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11(data) {
|
|
1197
|
+
return _regenerator.default.wrap(function (_context11) {
|
|
1198
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
1200
1199
|
case 0:
|
|
1201
1200
|
results[key][data.protocol].clientMediaIPs = data.clientMediaIPs;
|
|
1202
|
-
|
|
1201
|
+
_context11.next = 1;
|
|
1203
1202
|
return _this4.storeResults(results);
|
|
1204
|
-
case
|
|
1203
|
+
case 1:
|
|
1205
1204
|
case "end":
|
|
1206
|
-
return
|
|
1205
|
+
return _context11.stop();
|
|
1207
1206
|
}
|
|
1208
|
-
},
|
|
1207
|
+
}, _callee11);
|
|
1209
1208
|
}));
|
|
1210
1209
|
return function (_x7) {
|
|
1211
1210
|
return _ref7.apply(this, arguments);
|
|
1212
1211
|
};
|
|
1213
1212
|
}());
|
|
1214
1213
|
_this4.clusterReachability[key].on(_clusterReachability.Events.natTypeUpdated, /*#__PURE__*/function () {
|
|
1215
|
-
var _ref8 = (0, _asyncToGenerator2.default)(
|
|
1216
|
-
return _regenerator.default.wrap(function
|
|
1217
|
-
while (1) switch (
|
|
1214
|
+
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12(data) {
|
|
1215
|
+
return _regenerator.default.wrap(function (_context12) {
|
|
1216
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
1218
1217
|
case 0:
|
|
1219
1218
|
_this4.natType = data.natType;
|
|
1220
1219
|
case 1:
|
|
1221
1220
|
case "end":
|
|
1222
|
-
return
|
|
1221
|
+
return _context12.stop();
|
|
1223
1222
|
}
|
|
1224
|
-
},
|
|
1223
|
+
}, _callee12);
|
|
1225
1224
|
}));
|
|
1226
1225
|
return function (_x8) {
|
|
1227
1226
|
return _ref8.apply(this, arguments);
|
|
@@ -1229,11 +1228,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1229
1228
|
}());
|
|
1230
1229
|
_this4.clusterReachability[key].start(); // not awaiting on purpose
|
|
1231
1230
|
});
|
|
1232
|
-
case
|
|
1231
|
+
case 3:
|
|
1233
1232
|
case "end":
|
|
1234
|
-
return
|
|
1233
|
+
return _context13.stop();
|
|
1235
1234
|
}
|
|
1236
|
-
},
|
|
1235
|
+
}, _callee13, this);
|
|
1237
1236
|
}));
|
|
1238
1237
|
function performReachabilityChecks(_x5) {
|
|
1239
1238
|
return _performReachabilityChecks.apply(this, arguments);
|
|
@@ -1252,42 +1251,42 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1252
1251
|
}, {
|
|
1253
1252
|
key: "getClientMediaPreferences",
|
|
1254
1253
|
value: (function () {
|
|
1255
|
-
var _getClientMediaPreferences = (0, _asyncToGenerator2.default)(
|
|
1256
|
-
var reachabilityReport;
|
|
1257
|
-
return _regenerator.default.wrap(function
|
|
1258
|
-
while (1) switch (
|
|
1254
|
+
var _getClientMediaPreferences = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14(isMultistream, ipver) {
|
|
1255
|
+
var reachabilityReport, _t6, _t7, _t8;
|
|
1256
|
+
return _regenerator.default.wrap(function (_context14) {
|
|
1257
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
1259
1258
|
case 0:
|
|
1260
1259
|
if (this.orpheusApiVersion) {
|
|
1261
|
-
|
|
1260
|
+
_context14.next = 2;
|
|
1262
1261
|
break;
|
|
1263
1262
|
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1263
|
+
_t6 = ipver;
|
|
1264
|
+
_context14.next = 1;
|
|
1266
1265
|
return this.getJoinCookie();
|
|
1267
|
-
case
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
return
|
|
1271
|
-
ipver:
|
|
1272
|
-
joinCookie:
|
|
1273
|
-
preferTranscoding:
|
|
1266
|
+
case 1:
|
|
1267
|
+
_t7 = _context14.sent;
|
|
1268
|
+
_t8 = !isMultistream;
|
|
1269
|
+
return _context14.abrupt("return", {
|
|
1270
|
+
ipver: _t6,
|
|
1271
|
+
joinCookie: _t7,
|
|
1272
|
+
preferTranscoding: _t8
|
|
1274
1273
|
});
|
|
1275
|
-
case
|
|
1276
|
-
|
|
1274
|
+
case 2:
|
|
1275
|
+
_context14.next = 3;
|
|
1277
1276
|
return this.getReachabilityReport();
|
|
1278
|
-
case
|
|
1279
|
-
reachabilityReport =
|
|
1280
|
-
return
|
|
1277
|
+
case 3:
|
|
1278
|
+
reachabilityReport = _context14.sent;
|
|
1279
|
+
return _context14.abrupt("return", _objectSpread({
|
|
1281
1280
|
ipver: ipver,
|
|
1282
1281
|
preferTranscoding: !isMultistream
|
|
1283
1282
|
}, reachabilityReport));
|
|
1284
|
-
case
|
|
1283
|
+
case 4:
|
|
1285
1284
|
case "end":
|
|
1286
|
-
return
|
|
1285
|
+
return _context14.stop();
|
|
1287
1286
|
}
|
|
1288
|
-
},
|
|
1287
|
+
}, _callee14, this);
|
|
1289
1288
|
}));
|
|
1290
|
-
function getClientMediaPreferences(_x9,
|
|
1289
|
+
function getClientMediaPreferences(_x9, _x0) {
|
|
1291
1290
|
return _getClientMediaPreferences.apply(this, arguments);
|
|
1292
1291
|
}
|
|
1293
1292
|
return getClientMediaPreferences;
|
|
@@ -1303,22 +1302,22 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1303
1302
|
}, {
|
|
1304
1303
|
key: "getReachabilityReportToAttachToRoap",
|
|
1305
1304
|
value: (function () {
|
|
1306
|
-
var _getReachabilityReportToAttachToRoap = (0, _asyncToGenerator2.default)(
|
|
1307
|
-
return _regenerator.default.wrap(function
|
|
1308
|
-
while (1) switch (
|
|
1305
|
+
var _getReachabilityReportToAttachToRoap = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
1306
|
+
return _regenerator.default.wrap(function (_context15) {
|
|
1307
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
1309
1308
|
case 0:
|
|
1310
1309
|
if (this.orpheusApiVersion) {
|
|
1311
|
-
|
|
1310
|
+
_context15.next = 1;
|
|
1312
1311
|
break;
|
|
1313
1312
|
}
|
|
1314
|
-
return
|
|
1313
|
+
return _context15.abrupt("return", this.getReachabilityResults());
|
|
1314
|
+
case 1:
|
|
1315
|
+
return _context15.abrupt("return", undefined);
|
|
1315
1316
|
case 2:
|
|
1316
|
-
return _context17.abrupt("return", undefined);
|
|
1317
|
-
case 3:
|
|
1318
1317
|
case "end":
|
|
1319
|
-
return
|
|
1318
|
+
return _context15.stop();
|
|
1320
1319
|
}
|
|
1321
|
-
},
|
|
1320
|
+
}, _callee15, this);
|
|
1322
1321
|
}));
|
|
1323
1322
|
function getReachabilityReportToAttachToRoap() {
|
|
1324
1323
|
return _getReachabilityReportToAttachToRoap.apply(this, arguments);
|
|
@@ -1326,6 +1325,5 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1326
1325
|
return getReachabilityReportToAttachToRoap;
|
|
1327
1326
|
}())
|
|
1328
1327
|
}]);
|
|
1329
|
-
return Reachability;
|
|
1330
1328
|
}(_eventsScope.default);
|
|
1331
1329
|
//# sourceMappingURL=index.js.map
|