@webex/plugin-meetings 3.10.0 → 3.11.0-next.2
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 +38 -27
- 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 +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +14 -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 +1250 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +23 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +59 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +8 -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 +33 -13
- 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 +5 -3
- 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 +619 -177
- 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 +5 -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 +1644 -1535
- 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 +200 -148
- 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 +36 -30
- 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 +4 -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 +188 -352
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +212 -204
- 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/common/errors/webex-errors.d.ts +12 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/constants.d.ts +28 -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 +250 -0
- package/dist/types/hashTree/types.d.ts +33 -0
- package/dist/types/hashTree/utils.d.ts +16 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/interceptors/locusRouteToken.d.ts +2 -0
- package/dist/types/locus-info/index.d.ts +98 -80
- package/dist/types/locus-info/types.d.ts +54 -0
- package/dist/types/meeting/index.d.ts +35 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +3 -0
- package/dist/types/reachability/clusterReachability.d.ts +33 -84
- package/dist/types/reachability/reachability.types.d.ts +12 -1
- package/dist/types/reachability/reachabilityPeerConnection.d.ts +111 -0
- package/dist/types/webinar/utils.d.ts +6 -0
- package/dist/webinar/collection.js +1 -2
- package/dist/webinar/collection.js.map +1 -1
- package/dist/webinar/index.js +206 -158
- package/dist/webinar/index.js.map +1 -1
- package/dist/webinar/utils.js +25 -0
- package/dist/webinar/utils.js.map +1 -0
- package/package.json +24 -23
- package/src/common/errors/webex-errors.ts +19 -0
- package/src/config.ts +1 -0
- package/src/constants.ts +17 -2
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1143 -0
- package/src/hashTree/types.ts +39 -0
- package/src/hashTree/utils.ts +53 -0
- package/src/index.ts +2 -0
- package/src/interceptors/locusRouteToken.ts +22 -5
- package/src/locus-info/controlsUtils.ts +6 -0
- package/src/locus-info/index.ts +641 -164
- package/src/locus-info/types.ts +53 -0
- package/src/media/index.ts +6 -0
- package/src/meeting/index.ts +154 -29
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +119 -59
- package/src/meetings/util.ts +10 -9
- package/src/metrics/constants.ts +3 -0
- package/src/reachability/clusterReachability.ts +159 -330
- package/src/reachability/index.ts +15 -1
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +418 -0
- package/src/webinar/index.ts +44 -1
- package/src/webinar/utils.ts +16 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1524 -0
- package/test/unit/spec/hashTree/utils.ts +140 -0
- package/test/unit/spec/interceptors/locusRouteToken.ts +44 -0
- package/test/unit/spec/locus-info/controlsUtils.js +27 -1
- package/test/unit/spec/locus-info/index.js +879 -16
- package/test/unit/spec/media/index.ts +140 -9
- package/test/unit/spec/meeting/index.js +358 -129
- package/test/unit/spec/meeting/utils.js +78 -1
- package/test/unit/spec/meetings/index.js +263 -29
- package/test/unit/spec/meetings/utils.js +51 -1
- package/test/unit/spec/reachability/clusterReachability.ts +404 -137
- package/test/unit/spec/reachability/index.ts +26 -3
- package/test/unit/spec/webinar/index.ts +106 -0
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -24,13 +24,13 @@ 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");
|
|
33
|
+
var _webCapabilities = require("@webex/web-capabilities");
|
|
34
34
|
var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
|
|
35
35
|
var _util = _interopRequireDefault(require("../meeting/util"));
|
|
36
36
|
var _constants = require("../constants");
|
|
@@ -42,8 +42,8 @@ var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
|
42
42
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
|
43
43
|
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
44
|
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() {
|
|
45
|
+
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)); }
|
|
46
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*!
|
|
47
47
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
48
48
|
*/ /* eslint-disable class-methods-use-this */
|
|
49
49
|
// timeouts in seconds
|
|
@@ -56,8 +56,6 @@ var OVERALL_TIMEOUT = 15;
|
|
|
56
56
|
* @export
|
|
57
57
|
*/
|
|
58
58
|
var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
59
|
-
(0, _inherits2.default)(Reachability, _EventsScope);
|
|
60
|
-
var _super = _createSuper(Reachability);
|
|
61
59
|
/**
|
|
62
60
|
* Creates an instance of Reachability.
|
|
63
61
|
* @param {object} webex
|
|
@@ -66,18 +64,18 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
66
64
|
function Reachability(webex) {
|
|
67
65
|
var _this;
|
|
68
66
|
(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)(
|
|
67
|
+
_this = _callSuper(this, Reachability);
|
|
68
|
+
(0, _defineProperty2.default)(_this, "namespace", _constants.REACHABILITY.namespace);
|
|
69
|
+
(0, _defineProperty2.default)(_this, "webex", void 0);
|
|
70
|
+
(0, _defineProperty2.default)(_this, "reachabilityRequest", void 0);
|
|
71
|
+
(0, _defineProperty2.default)(_this, "clusterReachability", void 0);
|
|
72
|
+
(0, _defineProperty2.default)(_this, "minRequiredClusters", void 0);
|
|
73
|
+
(0, _defineProperty2.default)(_this, "orpheusApiVersion", void 0);
|
|
74
|
+
(0, _defineProperty2.default)(_this, "reachabilityDefer", void 0);
|
|
75
|
+
(0, _defineProperty2.default)(_this, "vmnTimer", void 0);
|
|
76
|
+
(0, _defineProperty2.default)(_this, "publicCloudTimer", void 0);
|
|
77
|
+
(0, _defineProperty2.default)(_this, "overallTimer", void 0);
|
|
78
|
+
(0, _defineProperty2.default)(_this, "expectedResultsCount", {
|
|
81
79
|
videoMesh: {
|
|
82
80
|
udp: 0
|
|
83
81
|
},
|
|
@@ -87,7 +85,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
87
85
|
xtls: 0
|
|
88
86
|
}
|
|
89
87
|
});
|
|
90
|
-
(0, _defineProperty2.default)(
|
|
88
|
+
(0, _defineProperty2.default)(_this, "resultsCount", {
|
|
91
89
|
videoMesh: {
|
|
92
90
|
udp: 0
|
|
93
91
|
},
|
|
@@ -97,10 +95,10 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
97
95
|
xtls: 0
|
|
98
96
|
}
|
|
99
97
|
});
|
|
100
|
-
(0, _defineProperty2.default)(
|
|
101
|
-
(0, _defineProperty2.default)(
|
|
102
|
-
(0, _defineProperty2.default)(
|
|
103
|
-
(0, _defineProperty2.default)(
|
|
98
|
+
(0, _defineProperty2.default)(_this, "startTime", undefined);
|
|
99
|
+
(0, _defineProperty2.default)(_this, "totalDuration", undefined);
|
|
100
|
+
(0, _defineProperty2.default)(_this, "natType", _reachability.NatType.Unknown);
|
|
101
|
+
(0, _defineProperty2.default)(_this, "lastTrigger", void 0);
|
|
104
102
|
_this.webex = webex;
|
|
105
103
|
|
|
106
104
|
/**
|
|
@@ -123,24 +121,26 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
123
121
|
* @private
|
|
124
122
|
* @returns {Promise<{clusters: ClusterList, joinCookie: any}>}
|
|
125
123
|
*/
|
|
126
|
-
(0,
|
|
124
|
+
(0, _inherits2.default)(Reachability, _EventsScope);
|
|
125
|
+
return (0, _createClass2.default)(Reachability, [{
|
|
127
126
|
key: "getClusters",
|
|
128
127
|
value: (function () {
|
|
129
|
-
var _getClusters = (0, _asyncToGenerator2.default)(
|
|
128
|
+
var _getClusters = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(trigger, previousReport) {
|
|
130
129
|
var isRetry,
|
|
131
130
|
_yield$this$reachabil,
|
|
132
131
|
clusters,
|
|
133
132
|
joinCookie,
|
|
134
133
|
discoveryOptions,
|
|
135
|
-
_args = arguments
|
|
136
|
-
|
|
134
|
+
_args = arguments,
|
|
135
|
+
_t;
|
|
136
|
+
return _regenerator.default.wrap(function (_context) {
|
|
137
137
|
while (1) switch (_context.prev = _context.next) {
|
|
138
138
|
case 0:
|
|
139
139
|
isRetry = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
|
|
140
140
|
_context.prev = 1;
|
|
141
|
-
_context.next =
|
|
141
|
+
_context.next = 2;
|
|
142
142
|
return this.reachabilityRequest.getClusters(trigger, _util.default.getIpVersion(this.webex), previousReport);
|
|
143
|
-
case
|
|
143
|
+
case 2:
|
|
144
144
|
_yield$this$reachabil = _context.sent;
|
|
145
145
|
clusters = _yield$this$reachabil.clusters;
|
|
146
146
|
joinCookie = _yield$this$reachabil.joinCookie;
|
|
@@ -149,29 +149,29 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
149
149
|
this.orpheusApiVersion = discoveryOptions === null || discoveryOptions === void 0 ? void 0 : discoveryOptions['report-version'];
|
|
150
150
|
|
|
151
151
|
// @ts-ignore
|
|
152
|
-
_context.next =
|
|
152
|
+
_context.next = 3;
|
|
153
153
|
return this.webex.boundedStorage.put(this.namespace, _constants.REACHABILITY.localStorageJoinCookie, (0, _stringify.default)(joinCookie));
|
|
154
|
-
case
|
|
154
|
+
case 3:
|
|
155
155
|
return _context.abrupt("return", {
|
|
156
156
|
clusters: clusters,
|
|
157
157
|
joinCookie: joinCookie
|
|
158
158
|
});
|
|
159
|
-
case
|
|
160
|
-
_context.prev =
|
|
161
|
-
|
|
159
|
+
case 4:
|
|
160
|
+
_context.prev = 4;
|
|
161
|
+
_t = _context["catch"](1);
|
|
162
162
|
if (!isRetry) {
|
|
163
|
-
_context.next =
|
|
163
|
+
_context.next = 5;
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
|
-
throw
|
|
167
|
-
case
|
|
168
|
-
_loggerProxy.default.logger.error("Reachability:index#getClusters --> Failed with error: ".concat(
|
|
166
|
+
throw _t;
|
|
167
|
+
case 5:
|
|
168
|
+
_loggerProxy.default.logger.error("Reachability:index#getClusters --> Failed with error: ".concat(_t, ", retrying..."));
|
|
169
169
|
return _context.abrupt("return", this.getClusters(trigger, previousReport, true));
|
|
170
|
-
case
|
|
170
|
+
case 6:
|
|
171
171
|
case "end":
|
|
172
172
|
return _context.stop();
|
|
173
173
|
}
|
|
174
|
-
}, _callee, this, [[1,
|
|
174
|
+
}, _callee, this, [[1, 4]]);
|
|
175
175
|
}));
|
|
176
176
|
function getClusters(_x, _x2) {
|
|
177
177
|
return _getClusters.apply(this, arguments);
|
|
@@ -222,16 +222,23 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
222
222
|
}, {
|
|
223
223
|
key: "gatherReachability",
|
|
224
224
|
value: (function () {
|
|
225
|
-
var _gatherReachability = (0, _asyncToGenerator2.default)(
|
|
226
|
-
var _yield$this$getCluste, clusters;
|
|
227
|
-
return _regenerator.default.wrap(function
|
|
225
|
+
var _gatherReachability = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(trigger) {
|
|
226
|
+
var _yield$this$getCluste, clusters, _t2;
|
|
227
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
228
228
|
while (1) switch (_context2.prev = _context2.next) {
|
|
229
229
|
case 0:
|
|
230
230
|
if (this.webex.config.meetings.enableReachabilityChecks) {
|
|
231
|
-
_context2.next =
|
|
231
|
+
_context2.next = 1;
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
234
234
|
throw new Error('enableReachabilityChecks is disabled in config');
|
|
235
|
+
case 1:
|
|
236
|
+
if (!(_webCapabilities.WebCapabilities.supportsRTCPeerConnection() !== _webCapabilities.CapabilityState.CAPABLE)) {
|
|
237
|
+
_context2.next = 2;
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
_loggerProxy.default.logger.warn('Reachability:index#gatherReachability --> WebRTC API is not available, skipping reachability checks');
|
|
241
|
+
return _context2.abrupt("return", {});
|
|
235
242
|
case 2:
|
|
236
243
|
_context2.prev = 2;
|
|
237
244
|
this.lastTrigger = trigger;
|
|
@@ -240,28 +247,28 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
240
247
|
// and if it fails, that's ok we can still carry on
|
|
241
248
|
// @ts-ignore
|
|
242
249
|
this.webex.internal.device.ipNetworkDetector.detect(true);
|
|
243
|
-
_context2.next =
|
|
250
|
+
_context2.next = 3;
|
|
244
251
|
return this.getClusters('startup');
|
|
245
|
-
case
|
|
252
|
+
case 3:
|
|
246
253
|
_yield$this$getCluste = _context2.sent;
|
|
247
254
|
clusters = _yield$this$getCluste.clusters;
|
|
248
255
|
this.reachabilityDefer = new _common.Defer();
|
|
249
256
|
|
|
250
257
|
// Perform Reachability Check
|
|
251
|
-
_context2.next =
|
|
258
|
+
_context2.next = 4;
|
|
252
259
|
return this.performReachabilityChecks(clusters);
|
|
253
|
-
case
|
|
260
|
+
case 4:
|
|
254
261
|
return _context2.abrupt("return", this.reachabilityDefer.promise);
|
|
255
|
-
case
|
|
256
|
-
_context2.prev =
|
|
257
|
-
|
|
258
|
-
_loggerProxy.default.logger.error("Reachability:index#gatherReachability --> Error:",
|
|
262
|
+
case 5:
|
|
263
|
+
_context2.prev = 5;
|
|
264
|
+
_t2 = _context2["catch"](2);
|
|
265
|
+
_loggerProxy.default.logger.error("Reachability:index#gatherReachability --> Error:", _t2);
|
|
259
266
|
return _context2.abrupt("return", {});
|
|
260
|
-
case
|
|
267
|
+
case 6:
|
|
261
268
|
case "end":
|
|
262
269
|
return _context2.stop();
|
|
263
270
|
}
|
|
264
|
-
}, _callee2, this, [[2,
|
|
271
|
+
}, _callee2, this, [[2, 5]]);
|
|
265
272
|
}));
|
|
266
273
|
function gatherReachability(_x3) {
|
|
267
274
|
return _gatherReachability.apply(this, arguments);
|
|
@@ -277,14 +284,14 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
277
284
|
}, {
|
|
278
285
|
key: "getJoinCookie",
|
|
279
286
|
value: (function () {
|
|
280
|
-
var _getJoinCookie = (0, _asyncToGenerator2.default)(
|
|
287
|
+
var _getJoinCookie = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
281
288
|
var joinCookieRaw, joinCookie;
|
|
282
|
-
return _regenerator.default.wrap(function
|
|
289
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
283
290
|
while (1) switch (_context3.prev = _context3.next) {
|
|
284
291
|
case 0:
|
|
285
|
-
_context3.next =
|
|
292
|
+
_context3.next = 1;
|
|
286
293
|
return this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageJoinCookie).catch(function () {});
|
|
287
|
-
case
|
|
294
|
+
case 1:
|
|
288
295
|
joinCookieRaw = _context3.sent;
|
|
289
296
|
if (joinCookieRaw) {
|
|
290
297
|
try {
|
|
@@ -294,7 +301,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
294
301
|
}
|
|
295
302
|
}
|
|
296
303
|
return _context3.abrupt("return", joinCookie);
|
|
297
|
-
case
|
|
304
|
+
case 2:
|
|
298
305
|
case "end":
|
|
299
306
|
return _context3.stop();
|
|
300
307
|
}
|
|
@@ -315,27 +322,27 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
315
322
|
}, {
|
|
316
323
|
key: "getReachabilityReport",
|
|
317
324
|
value: (function () {
|
|
318
|
-
var _getReachabilityReport = (0, _asyncToGenerator2.default)(
|
|
325
|
+
var _getReachabilityReport = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
319
326
|
var reachabilityResult, joinCookie;
|
|
320
|
-
return _regenerator.default.wrap(function
|
|
327
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
321
328
|
while (1) switch (_context4.prev = _context4.next) {
|
|
322
329
|
case 0:
|
|
323
|
-
_context4.next =
|
|
330
|
+
_context4.next = 1;
|
|
324
331
|
return this.getReachabilityResults();
|
|
325
|
-
case
|
|
332
|
+
case 1:
|
|
326
333
|
reachabilityResult = _context4.sent;
|
|
327
|
-
_context4.next =
|
|
334
|
+
_context4.next = 2;
|
|
328
335
|
return this.getJoinCookie();
|
|
329
|
-
case
|
|
336
|
+
case 2:
|
|
330
337
|
joinCookie = _context4.sent;
|
|
331
338
|
if (this.orpheusApiVersion) {
|
|
332
|
-
_context4.next =
|
|
339
|
+
_context4.next = 3;
|
|
333
340
|
break;
|
|
334
341
|
}
|
|
335
342
|
return _context4.abrupt("return", {
|
|
336
343
|
reachability: reachabilityResult
|
|
337
344
|
});
|
|
338
|
-
case
|
|
345
|
+
case 3:
|
|
339
346
|
return _context4.abrupt("return", {
|
|
340
347
|
reachability: {
|
|
341
348
|
version: 1,
|
|
@@ -351,7 +358,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
351
358
|
},
|
|
352
359
|
joinCookie: joinCookie
|
|
353
360
|
});
|
|
354
|
-
case
|
|
361
|
+
case 4:
|
|
355
362
|
case "end":
|
|
356
363
|
return _context4.stop();
|
|
357
364
|
}
|
|
@@ -373,39 +380,39 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
373
380
|
}, {
|
|
374
381
|
key: "gatherReachabilityFallback",
|
|
375
382
|
value: (function () {
|
|
376
|
-
var _gatherReachabilityFallback = (0, _asyncToGenerator2.default)(
|
|
377
|
-
var reachabilityReport, _yield$this$getCluste2, clusters;
|
|
378
|
-
return _regenerator.default.wrap(function
|
|
383
|
+
var _gatherReachabilityFallback = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
384
|
+
var reachabilityReport, _yield$this$getCluste2, clusters, _t3;
|
|
385
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
379
386
|
while (1) switch (_context5.prev = _context5.next) {
|
|
380
387
|
case 0:
|
|
381
388
|
_context5.prev = 0;
|
|
382
|
-
_context5.next =
|
|
389
|
+
_context5.next = 1;
|
|
383
390
|
return this.getReachabilityReport();
|
|
384
|
-
case
|
|
391
|
+
case 1:
|
|
385
392
|
reachabilityReport = _context5.sent;
|
|
386
|
-
_context5.next =
|
|
393
|
+
_context5.next = 2;
|
|
387
394
|
return this.getClusters('early-call/no-min-reached', reachabilityReport);
|
|
388
|
-
case
|
|
395
|
+
case 2:
|
|
389
396
|
_yield$this$getCluste2 = _context5.sent;
|
|
390
397
|
clusters = _yield$this$getCluste2.clusters;
|
|
391
398
|
// stop all previous reachability checks that might still be going on in the background
|
|
392
399
|
this.abortCurrentChecks();
|
|
393
400
|
|
|
394
401
|
// Perform Reachability Check
|
|
395
|
-
_context5.next =
|
|
402
|
+
_context5.next = 3;
|
|
396
403
|
return this.performReachabilityChecks(clusters);
|
|
397
|
-
case
|
|
398
|
-
_context5.next =
|
|
404
|
+
case 3:
|
|
405
|
+
_context5.next = 5;
|
|
399
406
|
break;
|
|
400
|
-
case
|
|
401
|
-
_context5.prev =
|
|
402
|
-
|
|
403
|
-
_loggerProxy.default.logger.error("Reachability:index#gatherReachabilityFallback --> Error:",
|
|
404
|
-
case
|
|
407
|
+
case 4:
|
|
408
|
+
_context5.prev = 4;
|
|
409
|
+
_t3 = _context5["catch"](0);
|
|
410
|
+
_loggerProxy.default.logger.error("Reachability:index#gatherReachabilityFallback --> Error:", _t3);
|
|
411
|
+
case 5:
|
|
405
412
|
case "end":
|
|
406
413
|
return _context5.stop();
|
|
407
414
|
}
|
|
408
|
-
}, _callee5, this, [[0,
|
|
415
|
+
}, _callee5, this, [[0, 4]]);
|
|
409
416
|
}));
|
|
410
417
|
function gatherReachabilityFallback() {
|
|
411
418
|
return _gatherReachabilityFallback.apply(this, arguments);
|
|
@@ -444,9 +451,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
444
451
|
}, {
|
|
445
452
|
key: "getReachabilityMetrics",
|
|
446
453
|
value: (function () {
|
|
447
|
-
var _getReachabilityMetrics = (0, _asyncToGenerator2.default)(
|
|
448
|
-
var stats, updateStats, resultsJson, results;
|
|
449
|
-
return _regenerator.default.wrap(function
|
|
454
|
+
var _getReachabilityMetrics = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
455
|
+
var stats, updateStats, resultsJson, results, _t4;
|
|
456
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
450
457
|
while (1) switch (_context6.prev = _context6.next) {
|
|
451
458
|
case 0:
|
|
452
459
|
stats = {
|
|
@@ -478,29 +485,29 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
478
485
|
stats["reachability_".concat(clusterType, "_xtls_").concat(_outcome2)] += 1;
|
|
479
486
|
}
|
|
480
487
|
};
|
|
481
|
-
_context6.prev =
|
|
482
|
-
_context6.next =
|
|
488
|
+
_context6.prev = 1;
|
|
489
|
+
_context6.next = 2;
|
|
483
490
|
return this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageResult);
|
|
484
|
-
case
|
|
491
|
+
case 2:
|
|
485
492
|
resultsJson = _context6.sent;
|
|
486
493
|
results = JSON.parse(resultsJson);
|
|
487
494
|
(0, _values.default)(results).forEach(function (result) {
|
|
488
495
|
updateStats(result.isVideoMesh ? 'vmn' : 'public', result);
|
|
489
496
|
});
|
|
490
|
-
_context6.next =
|
|
497
|
+
_context6.next = 4;
|
|
491
498
|
break;
|
|
492
|
-
case
|
|
493
|
-
_context6.prev =
|
|
494
|
-
|
|
499
|
+
case 3:
|
|
500
|
+
_context6.prev = 3;
|
|
501
|
+
_t4 = _context6["catch"](1);
|
|
495
502
|
// empty storage, that's ok
|
|
496
|
-
_loggerProxy.default.logger.warn('Roap:request#getReachabilityMetrics --> Error parsing reachability data: ',
|
|
497
|
-
case
|
|
503
|
+
_loggerProxy.default.logger.warn('Roap:request#getReachabilityMetrics --> Error parsing reachability data: ', _t4);
|
|
504
|
+
case 4:
|
|
498
505
|
return _context6.abrupt("return", stats);
|
|
499
|
-
case
|
|
506
|
+
case 5:
|
|
500
507
|
case "end":
|
|
501
508
|
return _context6.stop();
|
|
502
509
|
}
|
|
503
|
-
}, _callee6, this, [[
|
|
510
|
+
}, _callee6, this, [[1, 3]]);
|
|
504
511
|
}));
|
|
505
512
|
function getReachabilityMetrics() {
|
|
506
513
|
return _getReachabilityMetrics.apply(this, arguments);
|
|
@@ -519,9 +526,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
519
526
|
var output = {};
|
|
520
527
|
for (var _i = 0, _Object$entries = (0, _entries.default)(transportResult); _i < _Object$entries.length; _i++) {
|
|
521
528
|
var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i], 2),
|
|
522
|
-
|
|
529
|
+
key = _Object$entries$_i[0],
|
|
523
530
|
value = _Object$entries$_i[1];
|
|
524
|
-
switch (
|
|
531
|
+
switch (key) {
|
|
525
532
|
case 'result':
|
|
526
533
|
switch (value) {
|
|
527
534
|
case 'reachable':
|
|
@@ -539,7 +546,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
539
546
|
output.latencyInMilliseconds = value.toString();
|
|
540
547
|
break;
|
|
541
548
|
default:
|
|
542
|
-
output[
|
|
549
|
+
output[key] = value;
|
|
543
550
|
}
|
|
544
551
|
}
|
|
545
552
|
return output;
|
|
@@ -553,16 +560,16 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
553
560
|
}, {
|
|
554
561
|
key: "getReachabilityResults",
|
|
555
562
|
value: (function () {
|
|
556
|
-
var _getReachabilityResults = (0, _asyncToGenerator2.default)(
|
|
563
|
+
var _getReachabilityResults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
557
564
|
var _this2 = this;
|
|
558
|
-
var results, resultsJson, allClusterResults;
|
|
559
|
-
return _regenerator.default.wrap(function
|
|
565
|
+
var results, resultsJson, allClusterResults, _t5;
|
|
566
|
+
return _regenerator.default.wrap(function (_context7) {
|
|
560
567
|
while (1) switch (_context7.prev = _context7.next) {
|
|
561
568
|
case 0:
|
|
562
569
|
_context7.prev = 0;
|
|
563
|
-
_context7.next =
|
|
570
|
+
_context7.next = 1;
|
|
564
571
|
return this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageResult);
|
|
565
|
-
case
|
|
572
|
+
case 1:
|
|
566
573
|
resultsJson = _context7.sent;
|
|
567
574
|
allClusterResults = JSON.parse(resultsJson);
|
|
568
575
|
results = (0, _lodash.mapValues)(allClusterResults, function (clusterResult) {
|
|
@@ -578,20 +585,20 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
578
585
|
})
|
|
579
586
|
};
|
|
580
587
|
});
|
|
581
|
-
_context7.next =
|
|
588
|
+
_context7.next = 3;
|
|
582
589
|
break;
|
|
583
|
-
case
|
|
584
|
-
_context7.prev =
|
|
585
|
-
|
|
590
|
+
case 2:
|
|
591
|
+
_context7.prev = 2;
|
|
592
|
+
_t5 = _context7["catch"](0);
|
|
586
593
|
// empty storage, that's ok
|
|
587
|
-
_loggerProxy.default.logger.warn('Reachability:index#getReachabilityResults --> Error parsing reachability data: ',
|
|
588
|
-
case
|
|
594
|
+
_loggerProxy.default.logger.warn('Reachability:index#getReachabilityResults --> Error parsing reachability data: ', _t5);
|
|
595
|
+
case 3:
|
|
589
596
|
return _context7.abrupt("return", results);
|
|
590
|
-
case
|
|
597
|
+
case 4:
|
|
591
598
|
case "end":
|
|
592
599
|
return _context7.stop();
|
|
593
600
|
}
|
|
594
|
-
}, _callee7, this, [[0,
|
|
601
|
+
}, _callee7, this, [[0, 2]]);
|
|
595
602
|
}));
|
|
596
603
|
function getReachabilityResults() {
|
|
597
604
|
return _getReachabilityResults.apply(this, arguments);
|
|
@@ -608,15 +615,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
608
615
|
}, {
|
|
609
616
|
key: "isAnyPublicClusterReachable",
|
|
610
617
|
value: (function () {
|
|
611
|
-
var _isAnyPublicClusterReachable = (0, _asyncToGenerator2.default)(
|
|
618
|
+
var _isAnyPublicClusterReachable = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
612
619
|
var reachable, reachabilityData, reachabilityResults;
|
|
613
|
-
return _regenerator.default.wrap(function
|
|
620
|
+
return _regenerator.default.wrap(function (_context8) {
|
|
614
621
|
while (1) switch (_context8.prev = _context8.next) {
|
|
615
622
|
case 0:
|
|
616
623
|
reachable = false; // @ts-ignore
|
|
617
|
-
_context8.next =
|
|
624
|
+
_context8.next = 1;
|
|
618
625
|
return this.webex.boundedStorage.get(this.namespace, _constants.REACHABILITY.localStorageResult).catch(function () {});
|
|
619
|
-
case
|
|
626
|
+
case 1:
|
|
620
627
|
reachabilityData = _context8.sent;
|
|
621
628
|
if (reachabilityData) {
|
|
622
629
|
try {
|
|
@@ -630,7 +637,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
630
637
|
}
|
|
631
638
|
}
|
|
632
639
|
return _context8.abrupt("return", reachable);
|
|
633
|
-
case
|
|
640
|
+
case 2:
|
|
634
641
|
case "end":
|
|
635
642
|
return _context8.stop();
|
|
636
643
|
}
|
|
@@ -655,15 +662,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
655
662
|
}, {
|
|
656
663
|
key: "isWebexMediaBackendUnreachable",
|
|
657
664
|
value: (function () {
|
|
658
|
-
var _isWebexMediaBackendUnreachable = (0, _asyncToGenerator2.default)(
|
|
665
|
+
var _isWebexMediaBackendUnreachable = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
659
666
|
var unreachable, reachabilityData, reachabilityResults, protocols;
|
|
660
|
-
return _regenerator.default.wrap(function
|
|
667
|
+
return _regenerator.default.wrap(function (_context9) {
|
|
661
668
|
while (1) switch (_context9.prev = _context9.next) {
|
|
662
669
|
case 0:
|
|
663
670
|
unreachable = false; // @ts-ignore
|
|
664
|
-
_context9.next =
|
|
671
|
+
_context9.next = 1;
|
|
665
672
|
return this.webex.boundedStorage.get(this.namespace, _constants.REACHABILITY.localStorageResult).catch(function () {});
|
|
666
|
-
case
|
|
673
|
+
case 1:
|
|
667
674
|
reachabilityData = _context9.sent;
|
|
668
675
|
if (reachabilityData) {
|
|
669
676
|
try {
|
|
@@ -703,7 +710,7 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
703
710
|
}
|
|
704
711
|
}
|
|
705
712
|
return _context9.abrupt("return", unreachable);
|
|
706
|
-
case
|
|
713
|
+
case 2:
|
|
707
714
|
case "end":
|
|
708
715
|
return _context9.stop();
|
|
709
716
|
}
|
|
@@ -893,15 +900,15 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
893
900
|
}, {
|
|
894
901
|
key: "sendMetric",
|
|
895
902
|
value: (function () {
|
|
896
|
-
var _sendMetric = (0, _asyncToGenerator2.default)(
|
|
903
|
+
var _sendMetric = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0() {
|
|
897
904
|
var aborted,
|
|
898
905
|
results,
|
|
899
906
|
stats,
|
|
900
|
-
|
|
901
|
-
return _regenerator.default.wrap(function
|
|
902
|
-
while (1) switch (
|
|
907
|
+
_args0 = arguments;
|
|
908
|
+
return _regenerator.default.wrap(function (_context0) {
|
|
909
|
+
while (1) switch (_context0.prev = _context0.next) {
|
|
903
910
|
case 0:
|
|
904
|
-
aborted =
|
|
911
|
+
aborted = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : false;
|
|
905
912
|
results = [];
|
|
906
913
|
(0, _values.default)(this.clusterReachability).forEach(function (clusterReachability) {
|
|
907
914
|
results.push(_objectSpread(_objectSpread({}, clusterReachability.getResult()), {}, {
|
|
@@ -931,11 +938,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
931
938
|
trigger: this.lastTrigger
|
|
932
939
|
};
|
|
933
940
|
_metrics.default.sendBehavioralMetric(_constants2.default.REACHABILITY_COMPLETED, _metrics.default.prepareMetricFields(stats));
|
|
934
|
-
case
|
|
941
|
+
case 1:
|
|
935
942
|
case "end":
|
|
936
|
-
return
|
|
943
|
+
return _context0.stop();
|
|
937
944
|
}
|
|
938
|
-
},
|
|
945
|
+
}, _callee0, this);
|
|
939
946
|
}));
|
|
940
947
|
function sendMetric() {
|
|
941
948
|
return _sendMetric.apply(this, arguments);
|
|
@@ -991,17 +998,17 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
991
998
|
}, {
|
|
992
999
|
key: "storeResults",
|
|
993
1000
|
value: (function () {
|
|
994
|
-
var _storeResults = (0, _asyncToGenerator2.default)(
|
|
995
|
-
return _regenerator.default.wrap(function
|
|
996
|
-
while (1) switch (
|
|
1001
|
+
var _storeResults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1(results) {
|
|
1002
|
+
return _regenerator.default.wrap(function (_context1) {
|
|
1003
|
+
while (1) switch (_context1.prev = _context1.next) {
|
|
997
1004
|
case 0:
|
|
998
|
-
|
|
1005
|
+
_context1.next = 1;
|
|
999
1006
|
return this.webex.boundedStorage.put(this.namespace, _constants.REACHABILITY.localStorageResult, (0, _stringify.default)(results));
|
|
1000
|
-
case
|
|
1007
|
+
case 1:
|
|
1001
1008
|
case "end":
|
|
1002
|
-
return
|
|
1009
|
+
return _context1.stop();
|
|
1003
1010
|
}
|
|
1004
|
-
},
|
|
1011
|
+
}, _callee1, this);
|
|
1005
1012
|
}));
|
|
1006
1013
|
function storeResults(_x4) {
|
|
1007
1014
|
return _storeResults.apply(this, arguments);
|
|
@@ -1064,11 +1071,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1064
1071
|
}, {
|
|
1065
1072
|
key: "performReachabilityChecks",
|
|
1066
1073
|
value: (function () {
|
|
1067
|
-
var _performReachabilityChecks = (0, _asyncToGenerator2.default)(
|
|
1074
|
+
var _performReachabilityChecks = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13(clusterList) {
|
|
1068
1075
|
var _this4 = this;
|
|
1069
1076
|
var results, isFirstResult;
|
|
1070
|
-
return _regenerator.default.wrap(function
|
|
1071
|
-
while (1) switch (
|
|
1077
|
+
return _regenerator.default.wrap(function (_context13) {
|
|
1078
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
1072
1079
|
case 0:
|
|
1073
1080
|
results = {};
|
|
1074
1081
|
this.clusterReachability = {};
|
|
@@ -1126,11 +1133,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1126
1133
|
tcp: true,
|
|
1127
1134
|
xtls: true
|
|
1128
1135
|
}; // save the initialized results (in case we don't get any "resultReady" events at all)
|
|
1129
|
-
|
|
1136
|
+
_context13.next = 1;
|
|
1130
1137
|
return this.storeResults(results);
|
|
1131
|
-
case
|
|
1138
|
+
case 1:
|
|
1132
1139
|
if (!(!clusterList || !(0, _keys.default)(clusterList).length)) {
|
|
1133
|
-
|
|
1140
|
+
_context13.next = 2;
|
|
1134
1141
|
break;
|
|
1135
1142
|
}
|
|
1136
1143
|
// nothing to do, finish immediately
|
|
@@ -1139,19 +1146,21 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1139
1146
|
file: 'reachability',
|
|
1140
1147
|
function: 'performReachabilityChecks'
|
|
1141
1148
|
}, 'reachability:done', {});
|
|
1142
|
-
return
|
|
1143
|
-
case
|
|
1149
|
+
return _context13.abrupt("return");
|
|
1150
|
+
case 2:
|
|
1144
1151
|
this.startTimers();
|
|
1145
1152
|
|
|
1146
1153
|
// now start the reachability on all the clusters
|
|
1147
1154
|
(0, _keys.default)(clusterList).forEach(function (key) {
|
|
1148
1155
|
var cluster = clusterList[key];
|
|
1149
|
-
_this4.clusterReachability[key] = new _clusterReachability.ClusterReachability(key, cluster
|
|
1156
|
+
_this4.clusterReachability[key] = new _clusterReachability.ClusterReachability(key, cluster,
|
|
1157
|
+
// @ts-ignore
|
|
1158
|
+
_this4.webex.config.meetings.enablePerUdpUrlReachability);
|
|
1150
1159
|
_this4.clusterReachability[key].on(_clusterReachability.Events.resultReady, /*#__PURE__*/function () {
|
|
1151
|
-
var _ref6 = (0, _asyncToGenerator2.default)(
|
|
1160
|
+
var _ref6 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10(data) {
|
|
1152
1161
|
var protocol, result, clientMediaIPs, latencyInMilliseconds, areAllResultsReady;
|
|
1153
|
-
return _regenerator.default.wrap(function
|
|
1154
|
-
while (1) switch (
|
|
1162
|
+
return _regenerator.default.wrap(function (_context10) {
|
|
1163
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
1155
1164
|
case 0:
|
|
1156
1165
|
protocol = data.protocol, result = data.result, clientMediaIPs = data.clientMediaIPs, latencyInMilliseconds = data.latencyInMilliseconds;
|
|
1157
1166
|
if (isFirstResult[protocol]) {
|
|
@@ -1168,9 +1177,9 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1168
1177
|
results[key][protocol].result = result;
|
|
1169
1178
|
results[key][protocol].clientMediaIPs = clientMediaIPs;
|
|
1170
1179
|
results[key][protocol].latencyInMilliseconds = latencyInMilliseconds;
|
|
1171
|
-
|
|
1180
|
+
_context10.next = 1;
|
|
1172
1181
|
return _this4.storeResults(results);
|
|
1173
|
-
case
|
|
1182
|
+
case 1:
|
|
1174
1183
|
if (areAllResultsReady) {
|
|
1175
1184
|
_this4.clearTimer('overallTimer');
|
|
1176
1185
|
_this4.emit({
|
|
@@ -1181,11 +1190,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1181
1190
|
_loggerProxy.default.logger.log("Reachability:index#gatherReachability --> Reachability checks fully completed");
|
|
1182
1191
|
_this4.resolveReachabilityPromise();
|
|
1183
1192
|
}
|
|
1184
|
-
case
|
|
1193
|
+
case 2:
|
|
1185
1194
|
case "end":
|
|
1186
|
-
return
|
|
1195
|
+
return _context10.stop();
|
|
1187
1196
|
}
|
|
1188
|
-
},
|
|
1197
|
+
}, _callee10);
|
|
1189
1198
|
}));
|
|
1190
1199
|
return function (_x6) {
|
|
1191
1200
|
return _ref6.apply(this, arguments);
|
|
@@ -1194,34 +1203,34 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1194
1203
|
|
|
1195
1204
|
// clientMediaIps can be updated independently from the results, so we need to listen for them too
|
|
1196
1205
|
_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 (
|
|
1206
|
+
var _ref7 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11(data) {
|
|
1207
|
+
return _regenerator.default.wrap(function (_context11) {
|
|
1208
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
1200
1209
|
case 0:
|
|
1201
1210
|
results[key][data.protocol].clientMediaIPs = data.clientMediaIPs;
|
|
1202
|
-
|
|
1211
|
+
_context11.next = 1;
|
|
1203
1212
|
return _this4.storeResults(results);
|
|
1204
|
-
case
|
|
1213
|
+
case 1:
|
|
1205
1214
|
case "end":
|
|
1206
|
-
return
|
|
1215
|
+
return _context11.stop();
|
|
1207
1216
|
}
|
|
1208
|
-
},
|
|
1217
|
+
}, _callee11);
|
|
1209
1218
|
}));
|
|
1210
1219
|
return function (_x7) {
|
|
1211
1220
|
return _ref7.apply(this, arguments);
|
|
1212
1221
|
};
|
|
1213
1222
|
}());
|
|
1214
1223
|
_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 (
|
|
1224
|
+
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12(data) {
|
|
1225
|
+
return _regenerator.default.wrap(function (_context12) {
|
|
1226
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
1218
1227
|
case 0:
|
|
1219
1228
|
_this4.natType = data.natType;
|
|
1220
1229
|
case 1:
|
|
1221
1230
|
case "end":
|
|
1222
|
-
return
|
|
1231
|
+
return _context12.stop();
|
|
1223
1232
|
}
|
|
1224
|
-
},
|
|
1233
|
+
}, _callee12);
|
|
1225
1234
|
}));
|
|
1226
1235
|
return function (_x8) {
|
|
1227
1236
|
return _ref8.apply(this, arguments);
|
|
@@ -1229,11 +1238,11 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1229
1238
|
}());
|
|
1230
1239
|
_this4.clusterReachability[key].start(); // not awaiting on purpose
|
|
1231
1240
|
});
|
|
1232
|
-
case
|
|
1241
|
+
case 3:
|
|
1233
1242
|
case "end":
|
|
1234
|
-
return
|
|
1243
|
+
return _context13.stop();
|
|
1235
1244
|
}
|
|
1236
|
-
},
|
|
1245
|
+
}, _callee13, this);
|
|
1237
1246
|
}));
|
|
1238
1247
|
function performReachabilityChecks(_x5) {
|
|
1239
1248
|
return _performReachabilityChecks.apply(this, arguments);
|
|
@@ -1252,42 +1261,42 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1252
1261
|
}, {
|
|
1253
1262
|
key: "getClientMediaPreferences",
|
|
1254
1263
|
value: (function () {
|
|
1255
|
-
var _getClientMediaPreferences = (0, _asyncToGenerator2.default)(
|
|
1256
|
-
var reachabilityReport;
|
|
1257
|
-
return _regenerator.default.wrap(function
|
|
1258
|
-
while (1) switch (
|
|
1264
|
+
var _getClientMediaPreferences = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14(isMultistream, ipver) {
|
|
1265
|
+
var reachabilityReport, _t6, _t7, _t8;
|
|
1266
|
+
return _regenerator.default.wrap(function (_context14) {
|
|
1267
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
1259
1268
|
case 0:
|
|
1260
1269
|
if (this.orpheusApiVersion) {
|
|
1261
|
-
|
|
1270
|
+
_context14.next = 2;
|
|
1262
1271
|
break;
|
|
1263
1272
|
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1273
|
+
_t6 = ipver;
|
|
1274
|
+
_context14.next = 1;
|
|
1266
1275
|
return this.getJoinCookie();
|
|
1267
|
-
case
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
return
|
|
1271
|
-
ipver:
|
|
1272
|
-
joinCookie:
|
|
1273
|
-
preferTranscoding:
|
|
1276
|
+
case 1:
|
|
1277
|
+
_t7 = _context14.sent;
|
|
1278
|
+
_t8 = !isMultistream;
|
|
1279
|
+
return _context14.abrupt("return", {
|
|
1280
|
+
ipver: _t6,
|
|
1281
|
+
joinCookie: _t7,
|
|
1282
|
+
preferTranscoding: _t8
|
|
1274
1283
|
});
|
|
1275
|
-
case
|
|
1276
|
-
|
|
1284
|
+
case 2:
|
|
1285
|
+
_context14.next = 3;
|
|
1277
1286
|
return this.getReachabilityReport();
|
|
1278
|
-
case
|
|
1279
|
-
reachabilityReport =
|
|
1280
|
-
return
|
|
1287
|
+
case 3:
|
|
1288
|
+
reachabilityReport = _context14.sent;
|
|
1289
|
+
return _context14.abrupt("return", _objectSpread({
|
|
1281
1290
|
ipver: ipver,
|
|
1282
1291
|
preferTranscoding: !isMultistream
|
|
1283
1292
|
}, reachabilityReport));
|
|
1284
|
-
case
|
|
1293
|
+
case 4:
|
|
1285
1294
|
case "end":
|
|
1286
|
-
return
|
|
1295
|
+
return _context14.stop();
|
|
1287
1296
|
}
|
|
1288
|
-
},
|
|
1297
|
+
}, _callee14, this);
|
|
1289
1298
|
}));
|
|
1290
|
-
function getClientMediaPreferences(_x9,
|
|
1299
|
+
function getClientMediaPreferences(_x9, _x0) {
|
|
1291
1300
|
return _getClientMediaPreferences.apply(this, arguments);
|
|
1292
1301
|
}
|
|
1293
1302
|
return getClientMediaPreferences;
|
|
@@ -1303,22 +1312,22 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1303
1312
|
}, {
|
|
1304
1313
|
key: "getReachabilityReportToAttachToRoap",
|
|
1305
1314
|
value: (function () {
|
|
1306
|
-
var _getReachabilityReportToAttachToRoap = (0, _asyncToGenerator2.default)(
|
|
1307
|
-
return _regenerator.default.wrap(function
|
|
1308
|
-
while (1) switch (
|
|
1315
|
+
var _getReachabilityReportToAttachToRoap = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
1316
|
+
return _regenerator.default.wrap(function (_context15) {
|
|
1317
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
1309
1318
|
case 0:
|
|
1310
1319
|
if (this.orpheusApiVersion) {
|
|
1311
|
-
|
|
1320
|
+
_context15.next = 1;
|
|
1312
1321
|
break;
|
|
1313
1322
|
}
|
|
1314
|
-
return
|
|
1323
|
+
return _context15.abrupt("return", this.getReachabilityResults());
|
|
1324
|
+
case 1:
|
|
1325
|
+
return _context15.abrupt("return", undefined);
|
|
1315
1326
|
case 2:
|
|
1316
|
-
return _context17.abrupt("return", undefined);
|
|
1317
|
-
case 3:
|
|
1318
1327
|
case "end":
|
|
1319
|
-
return
|
|
1328
|
+
return _context15.stop();
|
|
1320
1329
|
}
|
|
1321
|
-
},
|
|
1330
|
+
}, _callee15, this);
|
|
1322
1331
|
}));
|
|
1323
1332
|
function getReachabilityReportToAttachToRoap() {
|
|
1324
1333
|
return _getReachabilityReportToAttachToRoap.apply(this, arguments);
|
|
@@ -1326,6 +1335,5 @@ var Reachability = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1326
1335
|
return getReachabilityReportToAttachToRoap;
|
|
1327
1336
|
}())
|
|
1328
1337
|
}]);
|
|
1329
|
-
return Reachability;
|
|
1330
1338
|
}(_eventsScope.default);
|
|
1331
1339
|
//# sourceMappingURL=index.js.map
|