@webex/plugin-meetings 3.0.0-next.22 → 3.0.0-next.24
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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meetings/index.d.ts +8 -0
- package/dist/meetings/index.js +20 -0
- package/dist/meetings/index.js.map +1 -1
- package/dist/reachability/clusterReachability.d.ts +1 -0
- package/dist/reachability/clusterReachability.js +29 -15
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.d.ts +4 -0
- package/dist/reachability/index.js +18 -2
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/util.d.ts +7 -0
- package/dist/reachability/util.js +19 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +21 -21
- package/src/config.ts +1 -0
- package/src/meetings/index.ts +18 -0
- package/src/reachability/clusterReachability.ts +20 -5
- package/src/reachability/index.ts +24 -1
- package/src/reachability/util.ts +21 -0
- package/test/unit/spec/meetings/index.js +13 -0
- package/test/unit/spec/reachability/clusterReachability.ts +86 -22
- package/test/unit/spec/reachability/index.ts +197 -60
- package/test/unit/spec/reachability/util.ts +32 -2
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {assert} from '@webex/test-helper-chai';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
convertStunUrlToTurn,
|
|
5
|
+
convertStunUrlToTurnTls,
|
|
6
|
+
} from '@webex/plugin-meetings/src/reachability/util';
|
|
4
7
|
|
|
5
8
|
describe('plugin-meetings/src/reachability/util', () => {
|
|
6
9
|
describe('#convertStunUrlToTurn()', () => {
|
|
@@ -34,7 +37,34 @@ describe('plugin-meetings/src/reachability/util', () => {
|
|
|
34
37
|
});
|
|
35
38
|
|
|
36
39
|
it('show fail if stunUrl is not a STUN url', () => {
|
|
37
|
-
assert.throws(
|
|
40
|
+
assert.throws(
|
|
41
|
+
() => convertStunUrlToTurn('http://webex.com', 'tcp'),
|
|
42
|
+
'Not a STUN URL: http://webex.com'
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
describe('#convertStunUrlToTurnTls()', () => {
|
|
48
|
+
it(`should convert to a turns url`, () => {
|
|
49
|
+
const turnsUrl = convertStunUrlToTurnTls(
|
|
50
|
+
'stun:external-media91.public.wjfkm-a-10.prod.infra.webex.com:443'
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
assert.equal(
|
|
54
|
+
turnsUrl,
|
|
55
|
+
'turns:external-media91.public.wjfkm-a-10.prod.infra.webex.com:443?transport=tcp'
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('show fail if stunUrl is not a valid url', () => {
|
|
60
|
+
assert.throws(() => convertStunUrlToTurn('not a url', 'tcp'), 'Invalid URL: not a url');
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('show fail if stunUrl is not a STUN url', () => {
|
|
64
|
+
assert.throws(
|
|
65
|
+
() => convertStunUrlToTurn('http://webex.com', 'tcp'),
|
|
66
|
+
'Not a STUN URL: http://webex.com'
|
|
67
|
+
);
|
|
38
68
|
});
|
|
39
69
|
});
|
|
40
70
|
});
|