fcr-core 3.10.1 → 3.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/engine/index.js +102 -108
- package/lib/imports.js +1 -0
- package/lib/media-control/desktop.js +22 -13
- package/lib/media-control/mobile.js +27 -19
- package/lib/media-control/type.d.ts +3 -3
- package/lib/monitor-control/index.js +17 -7
- package/lib/peer-session/index.js +120 -121
- package/lib/plugins/chat/chatroom.js +119 -96
- package/lib/plugins/chat/connector.js +69 -48
- package/lib/remote-control/index.js +194 -216
- package/lib/room-control/ability-control/index.js +20 -10
- package/lib/room-control/application-control/index.js +82 -75
- package/lib/room-control/group-control/index.js +31 -30
- package/lib/room-control/helpers/board-init-info-helper.js +16 -10
- package/lib/room-control/helpers/validation-helper.js +1 -1
- package/lib/room-control/index.js +70 -51
- package/lib/room-control/infinity-room-control/index.js +27 -19
- package/lib/room-control/interpreter-control/index.js +77 -65
- package/lib/room-control/interpreter-control/room.js +6 -4
- package/lib/room-control/join-before-host-waitingroom-control/index.js +6 -4
- package/lib/room-control/mainroom-control/index.js +37 -25
- package/lib/room-control/privilege-control/helper.js +28 -13
- package/lib/room-control/privilege-control/index.js +36 -28
- package/lib/room-control/room-connector-control/index.js +52 -49
- package/lib/room-control/room-connector-control/type.d.ts +1 -1
- package/lib/room-control/room-control-factory.js +10 -12
- package/lib/room-control/room-session/index.js +77 -74
- package/lib/room-control/shared-cache.js +63 -56
- package/lib/room-control/sharing-control/index.js +65 -57
- package/lib/room-control/stream-control/index.js +197 -193
- package/lib/room-control/stt-control/de-compress-gzip.js +10 -0
- package/lib/room-control/stt-control/index.js +93 -86
- package/lib/room-control/user-control/index.js +162 -155
- package/lib/room-control/waitingroom-control/index.js +18 -9
- package/lib/room-control/whiteboard-control/utils.js +4 -2
- package/lib/room-control/whiteboard-control-v1/board-subwindow.js +2 -1
- package/lib/room-control/whiteboard-control-v1/board-window.js +120 -103
- package/lib/room-control/whiteboard-control-v1/factory.js +7 -4
- package/lib/room-control/whiteboard-control-v1/index.js +80 -67
- package/lib/room-control/whiteboard-control-v1/mount-manager.js +4 -2
- package/lib/room-control/whiteboard-control-v1/utils.js +17 -14
- package/lib/room-control/whiteboard-control-v2/annotation-control/control.js +14 -10
- package/lib/room-control/whiteboard-control-v2/annotation-control/factory.js +17 -8
- package/lib/room-control/whiteboard-control-v2/base/index.js +61 -53
- package/lib/room-control/whiteboard-control-v2/base/main-window.js +39 -30
- package/lib/room-control/whiteboard-control-v2/utils.js +10 -10
- package/lib/room-control/whiteboard-control-v2/whiteboard-control/control.js +45 -33
- package/lib/room-control/whiteboard-control-v2/whiteboard-control/factory.js +27 -11
- package/lib/room-control/widget-control/index.js +43 -33
- package/lib/room-router/index.js +66 -58
- package/lib/schema.d.ts +15 -15
- package/lib/service/api.js +446 -548
- package/lib/struct.js +5 -2
- package/lib/utilities/abortable-retry.js +3 -0
- package/lib/utilities/collection.js +15 -11
- package/lib/utilities/error-helpers.js +34 -27
- package/lib/utilities/error.js +4 -3
- package/lib/utilities/join-helper.js +37 -31
- package/lib/utilities/logger.js +8 -5
- package/lib/utilities/parameters.js +21 -10
- package/lib/utilities/retry-helpers.js +1 -0
- package/lib/utilities/stream.js +16 -11
- package/lib/utilities/user.js +4 -3
- package/lib/utilities/validate-params.js +1 -1
- package/lib/utilities/video-encoder-config.js +10 -5
- package/lib-es/engine/index.js +102 -108
- package/lib-es/media-control/desktop.js +22 -13
- package/lib-es/media-control/mobile.js +27 -19
- package/lib-es/monitor-control/index.js +16 -7
- package/lib-es/peer-session/index.js +120 -121
- package/lib-es/plugins/chat/chatroom.js +118 -95
- package/lib-es/plugins/chat/connector.js +67 -47
- package/lib-es/remote-control/index.js +194 -216
- package/lib-es/room-control/ability-control/index.js +19 -10
- package/lib-es/room-control/application-control/index.js +81 -75
- package/lib-es/room-control/group-control/index.js +31 -30
- package/lib-es/room-control/helpers/board-init-info-helper.js +15 -10
- package/lib-es/room-control/helpers/validation-helper.js +1 -1
- package/lib-es/room-control/index.js +69 -51
- package/lib-es/room-control/infinity-room-control/index.js +26 -19
- package/lib-es/room-control/interpreter-control/index.js +77 -65
- package/lib-es/room-control/interpreter-control/room.js +5 -4
- package/lib-es/room-control/join-before-host-waitingroom-control/index.js +5 -4
- package/lib-es/room-control/mainroom-control/index.js +37 -25
- package/lib-es/room-control/privilege-control/helper.js +27 -13
- package/lib-es/room-control/privilege-control/index.js +36 -28
- package/lib-es/room-control/room-connector-control/index.js +52 -49
- package/lib-es/room-control/room-control-factory.js +10 -12
- package/lib-es/room-control/room-session/index.js +77 -74
- package/lib-es/room-control/shared-cache.js +62 -56
- package/lib-es/room-control/sharing-control/index.js +64 -57
- package/lib-es/room-control/stream-control/index.js +197 -193
- package/lib-es/room-control/stt-control/de-compress-gzip.js +10 -0
- package/lib-es/room-control/stt-control/index.js +93 -86
- package/lib-es/room-control/user-control/index.js +162 -155
- package/lib-es/room-control/waitingroom-control/index.js +18 -9
- package/lib-es/room-control/whiteboard-control/utils.js +4 -2
- package/lib-es/room-control/whiteboard-control-v1/board-subwindow.js +2 -1
- package/lib-es/room-control/whiteboard-control-v1/board-window.js +120 -103
- package/lib-es/room-control/whiteboard-control-v1/factory.js +6 -4
- package/lib-es/room-control/whiteboard-control-v1/index.js +80 -67
- package/lib-es/room-control/whiteboard-control-v1/mount-manager.js +3 -2
- package/lib-es/room-control/whiteboard-control-v1/utils.js +17 -14
- package/lib-es/room-control/whiteboard-control-v2/annotation-control/control.js +13 -10
- package/lib-es/room-control/whiteboard-control-v2/annotation-control/factory.js +16 -8
- package/lib-es/room-control/whiteboard-control-v2/base/index.js +60 -53
- package/lib-es/room-control/whiteboard-control-v2/base/main-window.js +39 -30
- package/lib-es/room-control/whiteboard-control-v2/utils.js +10 -10
- package/lib-es/room-control/whiteboard-control-v2/whiteboard-control/control.js +45 -33
- package/lib-es/room-control/whiteboard-control-v2/whiteboard-control/factory.js +26 -11
- package/lib-es/room-control/widget-control/index.js +42 -33
- package/lib-es/room-router/index.js +66 -58
- package/lib-es/service/api.js +445 -548
- package/lib-es/struct.js +4 -2
- package/lib-es/utilities/abortable-retry.js +3 -0
- package/lib-es/utilities/collection.js +14 -11
- package/lib-es/utilities/error-helpers.js +33 -26
- package/lib-es/utilities/error.js +4 -3
- package/lib-es/utilities/join-helper.js +36 -29
- package/lib-es/utilities/logger.js +7 -5
- package/lib-es/utilities/parameters.js +21 -10
- package/lib-es/utilities/retry-helpers.js +1 -0
- package/lib-es/utilities/stream.js +15 -11
- package/lib-es/utilities/user.js +4 -3
- package/lib-es/utilities/validate-params.js +1 -1
- package/lib-es/utilities/video-encoder-config.js +10 -5
- package/package.json +4 -4
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import "core-js/modules/es.symbol.description.js";
|
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
|
1
3
|
import "core-js/modules/es.array.push.js";
|
|
2
4
|
import "core-js/modules/esnext.function.metadata.js";
|
|
5
|
+
import "core-js/modules/esnext.iterator.constructor.js";
|
|
6
|
+
import "core-js/modules/esnext.iterator.filter.js";
|
|
7
|
+
import "core-js/modules/esnext.iterator.for-each.js";
|
|
3
8
|
import "core-js/modules/esnext.map.delete-all.js";
|
|
4
9
|
import "core-js/modules/esnext.map.emplace.js";
|
|
5
10
|
import "core-js/modules/esnext.map.every.js";
|
|
@@ -15,7 +20,13 @@ import "core-js/modules/esnext.map.reduce.js";
|
|
|
15
20
|
import "core-js/modules/esnext.map.some.js";
|
|
16
21
|
import "core-js/modules/esnext.map.update.js";
|
|
17
22
|
import "core-js/modules/esnext.symbol.metadata.js";
|
|
18
|
-
|
|
23
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
24
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
25
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
26
|
+
var _FcrWhiteboardControlFactoryImpl;
|
|
27
|
+
let _initProto, _createForSubProcessDecs, _createForMainProcessDecs, _ref;
|
|
28
|
+
function ownKeys(e, r) { var t = Object.keys(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; }
|
|
29
|
+
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) { _defineProperty(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; }
|
|
19
30
|
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function (e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O.static = l, O.private = f, f ? 2 === o ? k = function (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == typeof P && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol.for("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function (t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
20
31
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
21
32
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -28,18 +39,18 @@ import { createLogger } from '../../../utilities/logger';
|
|
|
28
39
|
import { getWhiteboardOptions } from '../../../utilities/shared-storage';
|
|
29
40
|
import { FcrStandaloneWhiteboardControlImpl, FcrWhiteboardControlImpl } from './control';
|
|
30
41
|
import { getBoardPerformance } from '../../../utilities/scene-properties';
|
|
42
|
+
_ref = (_createForSubProcessDecs = trace(['rtmClient', 'boardConfig']), _createForMainProcessDecs = trace(['rtmClient', 'boardConfig', 'scene', 'api', 'sharedCache']), "logger");
|
|
31
43
|
export class FcrWhiteboardControlFactoryImpl {
|
|
32
|
-
|
|
33
|
-
|
|
44
|
+
constructor() {
|
|
45
|
+
_defineProperty(this, _ref, (_initProto(this), createLogger({
|
|
46
|
+
prefix: 'FcrWhiteboardControlFactory'
|
|
47
|
+
})));
|
|
34
48
|
}
|
|
35
|
-
[(_createForSubProcessDecs = trace(['rtmClient', 'boardConfig']), _createForMainProcessDecs = trace(['rtmClient', 'boardConfig', 'scene', 'api', 'sharedCache']), "logger")] = (_initProto(this), createLogger({
|
|
36
|
-
prefix: 'FcrWhiteboardControlFactory'
|
|
37
|
-
}));
|
|
38
49
|
createForSubProcess(rtmClient, boardConfig) {
|
|
39
50
|
return new FcrStandaloneWhiteboardControlImpl(rtmClient, boardConfig, () => {
|
|
40
51
|
const forgeInitConfig = getWhiteboardOptions();
|
|
41
52
|
if (!forgeInitConfig) {
|
|
42
|
-
throw generateFcrCoreClientError(ErrorModuleCode.FCR_ROOM_WHITEBOARD, DetailErrorCode.UNDEFINED_ERROR,
|
|
53
|
+
throw generateFcrCoreClientError(ErrorModuleCode.FCR_ROOM_WHITEBOARD, DetailErrorCode.UNDEFINED_ERROR, "whiteboard init config is not exist");
|
|
43
54
|
}
|
|
44
55
|
return Promise.resolve(forgeInitConfig);
|
|
45
56
|
});
|
|
@@ -57,10 +68,14 @@ export class FcrWhiteboardControlFactoryImpl {
|
|
|
57
68
|
};
|
|
58
69
|
return async () => {
|
|
59
70
|
const response = await getObjectInitConfig(roomId, userId);
|
|
60
|
-
return {
|
|
61
|
-
...response.data,
|
|
71
|
+
return _objectSpread(_objectSpread({}, response.data), {}, {
|
|
62
72
|
boardPerformance
|
|
63
|
-
};
|
|
73
|
+
});
|
|
64
74
|
};
|
|
65
75
|
}
|
|
66
|
-
}
|
|
76
|
+
}
|
|
77
|
+
_FcrWhiteboardControlFactoryImpl = FcrWhiteboardControlFactoryImpl;
|
|
78
|
+
var _applyDecs$e = _applyDecs(_FcrWhiteboardControlFactoryImpl, [[_createForSubProcessDecs, 2, "createForSubProcess"], [_createForMainProcessDecs, 2, "createForMainProcess"]], []).e;
|
|
79
|
+
var _applyDecs$e2 = _slicedToArray(_applyDecs$e, 1);
|
|
80
|
+
_initProto = _applyDecs$e2[0];
|
|
81
|
+
_applyDecs$e;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "core-js/modules/es.symbol.description.js";
|
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
|
1
3
|
import "core-js/modules/es.array.push.js";
|
|
2
4
|
import "core-js/modules/esnext.function.metadata.js";
|
|
3
5
|
import "core-js/modules/esnext.map.delete-all.js";
|
|
@@ -15,7 +17,11 @@ import "core-js/modules/esnext.map.reduce.js";
|
|
|
15
17
|
import "core-js/modules/esnext.map.some.js";
|
|
16
18
|
import "core-js/modules/esnext.map.update.js";
|
|
17
19
|
import "core-js/modules/esnext.symbol.metadata.js";
|
|
18
|
-
|
|
20
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
21
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
22
|
+
var _FcrWidgetControlImpl;
|
|
23
|
+
let _initProto, _getActivityDecs, _activeDecs, _inactiveDecs, _ref;
|
|
24
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
19
25
|
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function (e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O.static = l, O.private = f, f ? 2 === o ? k = function (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == typeof P && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol.for("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function (t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
20
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
21
27
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -36,46 +42,44 @@ var WidgetState = /*#__PURE__*/function (WidgetState) {
|
|
|
36
42
|
/**
|
|
37
43
|
* @internal
|
|
38
44
|
*/
|
|
45
|
+
_ref = (_getActivityDecs = trace(['widgetId']), _activeDecs = trace(['widgetId']), _inactiveDecs = trace(['widgetId']), "logger");
|
|
39
46
|
export class FcrWidgetControlImpl {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this._observable.notifyObservers('onWidgetInactive', sceneId, widgetId);
|
|
47
|
+
constructor(_scene, _api, _sharedCache) {
|
|
48
|
+
//@internal
|
|
49
|
+
_defineProperty(this, _ref, (_initProto(this), createLogger({
|
|
50
|
+
prefix: 'FcrWidgetControlImpl'
|
|
51
|
+
})));
|
|
52
|
+
//@internal
|
|
53
|
+
_defineProperty(this, "_observable", new AgoraObservable());
|
|
54
|
+
//@internal
|
|
55
|
+
_defineProperty(this, "_sceneObserver", {
|
|
56
|
+
onScenePropertiesUpdated: (sceneId, event) => {
|
|
57
|
+
var _event$cause, _event$changedPropert;
|
|
58
|
+
if (((_event$cause = event.cause) === null || _event$cause === void 0 ? void 0 : _event$cause.cmd) !== WIDGET_SCENE_PROPERTIES_CMD) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const changedWidgets = (_event$changedPropert = event.changedProperties) === null || _event$changedPropert === void 0 ? void 0 : _event$changedPropert.flexWidgets;
|
|
62
|
+
if (!changedWidgets || typeof changedWidgets !== 'object') {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
for (const widgetId of Object.keys(changedWidgets)) {
|
|
66
|
+
var _changedWidgets$widge;
|
|
67
|
+
const state = (_changedWidgets$widge = changedWidgets[widgetId]) === null || _changedWidgets$widge === void 0 ? void 0 : _changedWidgets$widge.state;
|
|
68
|
+
if (state === WidgetState.ACTIVE) {
|
|
69
|
+
this._observable.notifyObservers('onWidgetActive', sceneId, widgetId);
|
|
70
|
+
} else if (state === WidgetState.INACTIVE) {
|
|
71
|
+
this._observable.notifyObservers('onWidgetInactive', sceneId, widgetId);
|
|
72
|
+
}
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
constructor(_scene, _api, _sharedCache) {
|
|
75
|
+
});
|
|
72
76
|
this._scene = _scene;
|
|
73
77
|
this._api = _api;
|
|
74
78
|
this._scene.addObserver(this._sceneObserver);
|
|
75
79
|
this._addLogObserver();
|
|
76
80
|
}
|
|
77
81
|
getActivity(widgetId) {
|
|
78
|
-
const state = this._scene.getScenePropertiesByKeyPath(
|
|
82
|
+
const state = this._scene.getScenePropertiesByKeyPath("flexWidgets.".concat(widgetId, ".state"));
|
|
79
83
|
return state === WidgetState.ACTIVE;
|
|
80
84
|
}
|
|
81
85
|
active(widgetId) {
|
|
@@ -106,4 +110,9 @@ export class FcrWidgetControlImpl {
|
|
|
106
110
|
_addLogObserver() {
|
|
107
111
|
this.addObserver(generateLogObserver(this.logger, [['onWidgetActive', ['roomId', 'widgetId']], ['onWidgetInactive', ['roomId', 'widgetId']]]));
|
|
108
112
|
}
|
|
109
|
-
}
|
|
113
|
+
}
|
|
114
|
+
_FcrWidgetControlImpl = FcrWidgetControlImpl;
|
|
115
|
+
var _applyDecs$e = _applyDecs(_FcrWidgetControlImpl, [[_getActivityDecs, 2, "getActivity"], [_activeDecs, 2, "active"], [_inactiveDecs, 2, "inactive"], [trace, 2, "release"]], []).e;
|
|
116
|
+
var _applyDecs$e2 = _slicedToArray(_applyDecs$e, 1);
|
|
117
|
+
_initProto = _applyDecs$e2[0];
|
|
118
|
+
_applyDecs$e;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import "core-js/modules/es.symbol.description.js";
|
|
1
2
|
import "core-js/modules/es.array.push.js";
|
|
2
3
|
import "core-js/modules/esnext.function.metadata.js";
|
|
4
|
+
import "core-js/modules/esnext.iterator.constructor.js";
|
|
5
|
+
import "core-js/modules/esnext.iterator.filter.js";
|
|
6
|
+
import "core-js/modules/esnext.iterator.for-each.js";
|
|
3
7
|
import "core-js/modules/esnext.map.delete-all.js";
|
|
4
8
|
import "core-js/modules/esnext.map.emplace.js";
|
|
5
9
|
import "core-js/modules/esnext.map.every.js";
|
|
@@ -15,7 +19,15 @@ import "core-js/modules/esnext.map.reduce.js";
|
|
|
15
19
|
import "core-js/modules/esnext.map.some.js";
|
|
16
20
|
import "core-js/modules/esnext.map.update.js";
|
|
17
21
|
import "core-js/modules/esnext.symbol.metadata.js";
|
|
18
|
-
|
|
22
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
23
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
24
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
25
|
+
var _FcrRoomRouterImpl;
|
|
26
|
+
let _initProto, _initDecs, _joinRoomDecs, _ref;
|
|
27
|
+
function ownKeys(e, r) { var t = Object.keys(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; }
|
|
28
|
+
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) { _defineProperty(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; }
|
|
29
|
+
import "core-js/modules/es.error.cause.js";
|
|
30
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
19
31
|
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function (e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O.static = l, O.private = f, f ? 2 === o ? k = function (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == typeof P && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol.for("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function (t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
20
32
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
21
33
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -38,34 +50,30 @@ import { convertServerRoomTypeToFcrRoomType } from '../utilities/convertRoomType
|
|
|
38
50
|
/**
|
|
39
51
|
* @internal
|
|
40
52
|
*/
|
|
41
|
-
|
|
53
|
+
_ref = (_initDecs = [trace(['roomId']), validateParams(stringSchema)], _joinRoomDecs = [trace(['options']), validateParams(fcrRoomJoinOptionsSchema)], "logger");
|
|
42
54
|
export class FcrRoomRouterImpl {
|
|
43
|
-
static {
|
|
44
|
-
[_initProto] = _applyDecs(this, [[_initDecs, 2, "_init"], [_joinRoomDecs, 2, "joinRoom"], [trace, 2, "leaveRoom"]], []).e;
|
|
45
|
-
}
|
|
46
|
-
[(_initDecs = [trace(['roomId']), validateParams(stringSchema)], _joinRoomDecs = [trace(['options']), validateParams(fcrRoomJoinOptionsSchema)], "logger")] = (_initProto(this), createLogger({
|
|
47
|
-
prefix: 'FcrRoomRouterImpl'
|
|
48
|
-
}));
|
|
49
|
-
_abortController = null;
|
|
50
|
-
_observable = new AgoraObservable();
|
|
51
|
-
_roomControlObservable = {
|
|
52
|
-
onRoomRouteSwitched: async event => {
|
|
53
|
-
this._nextRoomRoute = event.targetRouting;
|
|
54
|
-
this._observable.notifyObservers('onRoomRouteSwitched', this._nextRoomRoute);
|
|
55
|
-
this.roomControl.removeObserver(this._roomControlObservable);
|
|
56
|
-
this._roomControl = null;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
_roomControl = null;
|
|
60
|
-
_nextRoomRoute = {
|
|
61
|
-
roomId: '',
|
|
62
|
-
roomType: FcrRoomType.Mainroom,
|
|
63
|
-
isJoined: false
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// 接口中新增一个bypass字段,在第一次调用joinRoom的时候不传,在后续收到房间切换后的joinRoom时传true
|
|
67
|
-
_bypass = undefined;
|
|
68
55
|
constructor(_rteEngine, _apiService, _config, _chatConnection, _sharedCache, roomId, _monitorControl) {
|
|
56
|
+
_defineProperty(this, _ref, (_initProto(this), createLogger({
|
|
57
|
+
prefix: 'FcrRoomRouterImpl'
|
|
58
|
+
})));
|
|
59
|
+
_defineProperty(this, "_abortController", null);
|
|
60
|
+
_defineProperty(this, "_observable", new AgoraObservable());
|
|
61
|
+
_defineProperty(this, "_roomControlObservable", {
|
|
62
|
+
onRoomRouteSwitched: async event => {
|
|
63
|
+
this._nextRoomRoute = event.targetRouting;
|
|
64
|
+
this._observable.notifyObservers('onRoomRouteSwitched', this._nextRoomRoute);
|
|
65
|
+
this.roomControl.removeObserver(this._roomControlObservable);
|
|
66
|
+
this._roomControl = null;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
_defineProperty(this, "_roomControl", null);
|
|
70
|
+
_defineProperty(this, "_nextRoomRoute", {
|
|
71
|
+
roomId: '',
|
|
72
|
+
roomType: FcrRoomType.Mainroom,
|
|
73
|
+
isJoined: false
|
|
74
|
+
});
|
|
75
|
+
// 接口中新增一个bypass字段,在第一次调用joinRoom的时候不传,在后续收到房间切换后的joinRoom时传true
|
|
76
|
+
_defineProperty(this, "_bypass", undefined);
|
|
69
77
|
this._rteEngine = _rteEngine;
|
|
70
78
|
this._apiService = _apiService;
|
|
71
79
|
this._config = _config;
|
|
@@ -93,7 +101,9 @@ export class FcrRoomRouterImpl {
|
|
|
93
101
|
async joinRoom(options) {
|
|
94
102
|
this._abortController = new AbortController();
|
|
95
103
|
this._validateRoomJoinState();
|
|
96
|
-
const
|
|
104
|
+
const _await$to = await to(this._executeJoinRoomWithRetry(options)),
|
|
105
|
+
_await$to2 = _slicedToArray(_await$to, 1),
|
|
106
|
+
error = _await$to2[0];
|
|
97
107
|
this._abortController = null;
|
|
98
108
|
if (error) {
|
|
99
109
|
this._handleJoinRoomError(error);
|
|
@@ -105,9 +115,10 @@ export class FcrRoomRouterImpl {
|
|
|
105
115
|
return Promise.resolve(this._roomControl);
|
|
106
116
|
}
|
|
107
117
|
async leaveRoom() {
|
|
108
|
-
|
|
118
|
+
var _this$_abortControlle, _this$_roomControl;
|
|
119
|
+
(_this$_abortControlle = this._abortController) === null || _this$_abortControlle === void 0 || _this$_abortControlle.abort();
|
|
109
120
|
this._abortController = null;
|
|
110
|
-
this._roomControl
|
|
121
|
+
(_this$_roomControl = this._roomControl) === null || _this$_roomControl === void 0 || _this$_roomControl.leave();
|
|
111
122
|
this._roomControl = null;
|
|
112
123
|
return FcrReturnCode.SUCCESS;
|
|
113
124
|
}
|
|
@@ -130,11 +141,10 @@ export class FcrRoomRouterImpl {
|
|
|
130
141
|
const abortController = this._abortController;
|
|
131
142
|
return retryAttempt(() => this._performSingleJoinAttempt(options), [], {
|
|
132
143
|
retriesMax: ROOM_ROUTER_CONSTANTS.MAX_JOIN_ATTEMPTS
|
|
133
|
-
}).fail(async
|
|
134
|
-
error,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}) => {
|
|
144
|
+
}).fail(async _ref2 => {
|
|
145
|
+
let error = _ref2.error,
|
|
146
|
+
waitBeforeRetry = _ref2.timeFn,
|
|
147
|
+
attemptCount = _ref2.currentRetry;
|
|
138
148
|
return handleJoinRetryFailure(error, waitBeforeRetry, attemptCount, canRetryJoinError, () => {
|
|
139
149
|
this._throwIfAborted(abortController);
|
|
140
150
|
}, 'join room via router');
|
|
@@ -159,17 +169,15 @@ export class FcrRoomRouterImpl {
|
|
|
159
169
|
* @private
|
|
160
170
|
*/
|
|
161
171
|
async _performCheckIn(options) {
|
|
162
|
-
const
|
|
163
|
-
userId
|
|
164
|
-
} = this._rteEngine.getConfig();
|
|
172
|
+
const _this$_rteEngine$getC = this._rteEngine.getConfig(),
|
|
173
|
+
userId = _this$_rteEngine$getC.userId;
|
|
165
174
|
const checkInParams = FcrJoinHelper.buildCheckInParams(options, userId, this._nextRoomRoute.roomId, {
|
|
166
175
|
bypass: this._bypass,
|
|
167
176
|
avatar: options.avatar
|
|
168
177
|
});
|
|
169
|
-
const
|
|
170
|
-
data,
|
|
171
|
-
ts
|
|
172
|
-
} = await handleRequestError(() => this._apiService.checkIn(checkInParams), ErrorModuleCode.FCR_ENGINE);
|
|
178
|
+
const _await$handleRequestE = await handleRequestError(() => this._apiService.checkIn(checkInParams), ErrorModuleCode.FCR_ENGINE),
|
|
179
|
+
data = _await$handleRequestE.data,
|
|
180
|
+
ts = _await$handleRequestE.ts;
|
|
173
181
|
return {
|
|
174
182
|
data,
|
|
175
183
|
ts
|
|
@@ -181,22 +189,19 @@ export class FcrRoomRouterImpl {
|
|
|
181
189
|
* @private
|
|
182
190
|
*/
|
|
183
191
|
async _joinRoomControl(options, roomResponse) {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
ts
|
|
187
|
-
} = roomResponse;
|
|
192
|
+
const data = roomResponse.data,
|
|
193
|
+
ts = roomResponse.ts;
|
|
188
194
|
const abortController = this._abortController;
|
|
189
195
|
const roomControl = this._createRoomControl(data);
|
|
190
|
-
abortController
|
|
196
|
+
abortController === null || abortController === void 0 || abortController.signal.addEventListener('abort', () => {
|
|
191
197
|
roomControl.leave();
|
|
192
198
|
});
|
|
193
|
-
await roomControl.join({
|
|
194
|
-
...options,
|
|
199
|
+
await roomControl.join(_objectSpread(_objectSpread({}, options), {}, {
|
|
195
200
|
snapshot: data,
|
|
196
201
|
timestamp: ts,
|
|
197
202
|
createStreamConfigs: options.createStreamConfigs,
|
|
198
203
|
roomToken: options.roomToken || this._config.token
|
|
199
|
-
});
|
|
204
|
+
}));
|
|
200
205
|
return roomControl;
|
|
201
206
|
}
|
|
202
207
|
|
|
@@ -205,12 +210,10 @@ export class FcrRoomRouterImpl {
|
|
|
205
210
|
* @private
|
|
206
211
|
*/
|
|
207
212
|
_updateRoomState(roomResponse, roomControl) {
|
|
208
|
-
const
|
|
209
|
-
data
|
|
210
|
-
} = roomResponse;
|
|
213
|
+
const data = roomResponse.data;
|
|
211
214
|
const fcrRoomType = convertServerRoomTypeToFcrRoomType(data.room.roomProperties.roomType);
|
|
212
215
|
if (fcrRoomType === null) {
|
|
213
|
-
const fcrError = generateFcrCoreClientError(ErrorModuleCode.FCR_ROOM, DetailErrorCode.UNDEFINED_ERROR,
|
|
216
|
+
const fcrError = generateFcrCoreClientError(ErrorModuleCode.FCR_ROOM, DetailErrorCode.UNDEFINED_ERROR, "update room state failed: Unknown room type: ".concat(data.room.roomProperties.roomType));
|
|
214
217
|
throw fcrError;
|
|
215
218
|
}
|
|
216
219
|
this._nextRoomRoute = {
|
|
@@ -229,8 +232,8 @@ export class FcrRoomRouterImpl {
|
|
|
229
232
|
* @private
|
|
230
233
|
*/
|
|
231
234
|
_handleJoinRoomError(error) {
|
|
232
|
-
this.logger.error(
|
|
233
|
-
const fcrError = generateFcrCoreClientError(ErrorModuleCode.FCR_ROOM, DetailErrorCode.LOCAL_HTTP_REQUEST_FAILED,
|
|
235
|
+
this.logger.error("Failed to join the room: ".concat(error.message));
|
|
236
|
+
const fcrError = generateFcrCoreClientError(ErrorModuleCode.FCR_ROOM, DetailErrorCode.LOCAL_HTTP_REQUEST_FAILED, "join room failed: ".concat(error.message));
|
|
234
237
|
this._observable.notifyObservers('onErrorOccurred', fcrError);
|
|
235
238
|
}
|
|
236
239
|
|
|
@@ -256,7 +259,7 @@ export class FcrRoomRouterImpl {
|
|
|
256
259
|
});
|
|
257
260
|
}
|
|
258
261
|
_throwIfAborted(abortController) {
|
|
259
|
-
if (abortController
|
|
262
|
+
if (abortController !== null && abortController !== void 0 && abortController.signal.aborted) {
|
|
260
263
|
throw new Error('Join room attempt aborted');
|
|
261
264
|
}
|
|
262
265
|
}
|
|
@@ -269,4 +272,9 @@ export class FcrRoomRouterImpl {
|
|
|
269
272
|
removeObserver(observer) {
|
|
270
273
|
this._observable.removeObserver(observer);
|
|
271
274
|
}
|
|
272
|
-
}
|
|
275
|
+
}
|
|
276
|
+
_FcrRoomRouterImpl = FcrRoomRouterImpl;
|
|
277
|
+
var _applyDecs$e = _applyDecs(_FcrRoomRouterImpl, [[_initDecs, 2, "_init"], [_joinRoomDecs, 2, "joinRoom"], [trace, 2, "leaveRoom"]], []).e;
|
|
278
|
+
var _applyDecs$e2 = _slicedToArray(_applyDecs$e, 1);
|
|
279
|
+
_initProto = _applyDecs$e2[0];
|
|
280
|
+
_applyDecs$e;
|