@webex/plugin-meetings 3.8.1-next.7 → 3.8.1-next.8
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/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +10 -9
- package/dist/meeting/index.js.map +1 -1
- package/dist/reachability/index.js +5 -10
- package/dist/reachability/index.js.map +1 -1
- package/dist/types/reachability/index.d.ts +2 -2
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/meeting/index.ts +13 -11
- package/src/reachability/index.ts +5 -13
- package/test/unit/spec/meeting/index.js +50 -26
- package/test/unit/spec/reachability/index.ts +2 -6
@@ -2227,8 +2227,9 @@ describe('plugin-meetings', () => {
|
|
2227
2227
|
someReachabilityMetric1: 'some value1',
|
2228
2228
|
someReachabilityMetric2: 'some value2',
|
2229
2229
|
selectedCandidatePairChanges: 2,
|
2230
|
-
|
2231
|
-
|
2230
|
+
subnet_reachable: null,
|
2231
|
+
selected_cluster: null,
|
2232
|
+
selected_subnet: null,
|
2232
2233
|
numTransports: 1,
|
2233
2234
|
iceCandidatesCount: 0,
|
2234
2235
|
}
|
@@ -2275,8 +2276,9 @@ describe('plugin-meetings', () => {
|
|
2275
2276
|
signalingState: 'unknown',
|
2276
2277
|
connectionState: 'unknown',
|
2277
2278
|
iceConnectionState: 'unknown',
|
2278
|
-
|
2279
|
-
|
2279
|
+
subnet_reachable: null,
|
2280
|
+
selected_cluster: null,
|
2281
|
+
selected_subnet: null,
|
2280
2282
|
})
|
2281
2283
|
);
|
2282
2284
|
|
@@ -2342,8 +2344,9 @@ describe('plugin-meetings', () => {
|
|
2342
2344
|
selectedCandidatePairChanges: 2,
|
2343
2345
|
numTransports: 1,
|
2344
2346
|
iceCandidatesCount: 0,
|
2345
|
-
|
2346
|
-
|
2347
|
+
subnet_reachable: null,
|
2348
|
+
selected_cluster: null,
|
2349
|
+
selected_subnet: null,
|
2347
2350
|
}
|
2348
2351
|
);
|
2349
2352
|
});
|
@@ -2401,8 +2404,9 @@ describe('plugin-meetings', () => {
|
|
2401
2404
|
signalingState: 'have-local-offer',
|
2402
2405
|
connectionState: 'connecting',
|
2403
2406
|
iceConnectionState: 'checking',
|
2404
|
-
|
2405
|
-
|
2407
|
+
subnet_reachable: null,
|
2408
|
+
selected_cluster: null,
|
2409
|
+
selected_subnet: null,
|
2406
2410
|
})
|
2407
2411
|
);
|
2408
2412
|
|
@@ -2460,8 +2464,9 @@ describe('plugin-meetings', () => {
|
|
2460
2464
|
signalingState: 'have-local-offer',
|
2461
2465
|
connectionState: 'connecting',
|
2462
2466
|
iceConnectionState: 'checking',
|
2463
|
-
|
2464
|
-
|
2467
|
+
subnet_reachable: null,
|
2468
|
+
selected_cluster: null,
|
2469
|
+
selected_subnet: null,
|
2465
2470
|
})
|
2466
2471
|
);
|
2467
2472
|
|
@@ -2983,8 +2988,9 @@ describe('plugin-meetings', () => {
|
|
2983
2988
|
selectedCandidatePairChanges: 2,
|
2984
2989
|
numTransports: 1,
|
2985
2990
|
iceCandidatesCount: 0,
|
2986
|
-
|
2987
|
-
|
2991
|
+
subnet_reachable: null,
|
2992
|
+
selected_cluster: null,
|
2993
|
+
selected_subnet: null,
|
2988
2994
|
},
|
2989
2995
|
]);
|
2990
2996
|
|
@@ -3191,8 +3197,9 @@ describe('plugin-meetings', () => {
|
|
3191
3197
|
retriedWithTurnServer: true,
|
3192
3198
|
isJoinWithMediaRetry: false,
|
3193
3199
|
iceCandidatesCount: 0,
|
3194
|
-
|
3195
|
-
|
3200
|
+
subnet_reachable: null,
|
3201
|
+
selected_cluster: null,
|
3202
|
+
selected_subnet: null,
|
3196
3203
|
},
|
3197
3204
|
]);
|
3198
3205
|
meeting.roap.doTurnDiscovery;
|
@@ -3355,8 +3362,9 @@ describe('plugin-meetings', () => {
|
|
3355
3362
|
iceCandidatesCount: 3,
|
3356
3363
|
'701_error': 3,
|
3357
3364
|
'701_turn_host_lookup_received_error': 1,
|
3358
|
-
|
3359
|
-
|
3365
|
+
subnet_reachable: null,
|
3366
|
+
selected_cluster: 'some.cluster',
|
3367
|
+
selected_subnet: null,
|
3360
3368
|
}
|
3361
3369
|
);
|
3362
3370
|
|
@@ -3419,8 +3427,9 @@ describe('plugin-meetings', () => {
|
|
3419
3427
|
iceConnectionState: 'unknown',
|
3420
3428
|
selectedCandidatePairChanges: 2,
|
3421
3429
|
numTransports: 1,
|
3422
|
-
|
3423
|
-
|
3430
|
+
subnet_reachable: null,
|
3431
|
+
selected_cluster: null,
|
3432
|
+
selected_subnet: null,
|
3424
3433
|
iceCandidatesCount: 0,
|
3425
3434
|
}
|
3426
3435
|
);
|
@@ -3482,8 +3491,9 @@ describe('plugin-meetings', () => {
|
|
3482
3491
|
numTransports: 1,
|
3483
3492
|
'701_error': 2,
|
3484
3493
|
'701_turn_host_lookup_received_error': 1,
|
3485
|
-
|
3486
|
-
|
3494
|
+
subnet_reachable: null,
|
3495
|
+
selected_cluster: null,
|
3496
|
+
selected_subnet: null,
|
3487
3497
|
iceCandidatesCount: 0,
|
3488
3498
|
}
|
3489
3499
|
);
|
@@ -3491,7 +3501,7 @@ describe('plugin-meetings', () => {
|
|
3491
3501
|
assert.isOk(errorThrown);
|
3492
3502
|
});
|
3493
3503
|
|
3494
|
-
it('should send
|
3504
|
+
it('should send subnet reachablity metrics if media connection success', async () => {
|
3495
3505
|
meeting.roap.doTurnDiscovery = sinon.stub().returns({
|
3496
3506
|
turnServerInfo: undefined,
|
3497
3507
|
turnDiscoverySkippedReason: undefined,
|
@@ -3505,6 +3515,12 @@ describe('plugin-meetings', () => {
|
|
3505
3515
|
stopReachability: sinon.stub(),
|
3506
3516
|
isSubnetReachable: sinon.stub().returns(false),
|
3507
3517
|
};
|
3518
|
+
meeting.mediaServerIp = '1.2.3.4';
|
3519
|
+
meeting.mediaConnections = [
|
3520
|
+
{
|
3521
|
+
mediaAgentCluster: 'some.cluster',
|
3522
|
+
}
|
3523
|
+
]
|
3508
3524
|
|
3509
3525
|
const forceRtcMetricsSend = sinon.stub().resolves();
|
3510
3526
|
const closeMediaConnectionStub = sinon.stub();
|
@@ -3532,12 +3548,13 @@ describe('plugin-meetings', () => {
|
|
3532
3548
|
isJoinWithMediaRetry: false,
|
3533
3549
|
iceCandidatesCount: 0,
|
3534
3550
|
reachability_public_udp_success: 5,
|
3535
|
-
|
3536
|
-
|
3551
|
+
subnet_reachable: false,
|
3552
|
+
selected_cluster: 'some.cluster',
|
3553
|
+
selected_subnet: '1.X.X.X',
|
3537
3554
|
});
|
3538
3555
|
});
|
3539
3556
|
|
3540
|
-
it('should send
|
3557
|
+
it('should send subnet reachablity metrics if media connection fails', async () => {
|
3541
3558
|
let errorThrown = undefined;
|
3542
3559
|
|
3543
3560
|
meeting.roap.doTurnDiscovery = sinon.stub().returns({
|
@@ -3553,6 +3570,12 @@ describe('plugin-meetings', () => {
|
|
3553
3570
|
stopReachability: sinon.stub(),
|
3554
3571
|
isSubnetReachable: sinon.stub().returns(true),
|
3555
3572
|
};
|
3573
|
+
meeting.mediaServerIp = '1.2.3.4';
|
3574
|
+
meeting.mediaConnections = [
|
3575
|
+
{
|
3576
|
+
mediaAgentCluster: 'some.cluster',
|
3577
|
+
}
|
3578
|
+
]
|
3556
3579
|
|
3557
3580
|
const forceRtcMetricsSend = sinon.stub().resolves();
|
3558
3581
|
const closeMediaConnectionStub = sinon.stub();
|
@@ -3594,8 +3617,9 @@ describe('plugin-meetings', () => {
|
|
3594
3617
|
selectedCandidatePairChanges: 2,
|
3595
3618
|
numTransports: 1,
|
3596
3619
|
reachability_public_udp_success: 5,
|
3597
|
-
|
3598
|
-
|
3620
|
+
subnet_reachable: true,
|
3621
|
+
selected_cluster: 'some.cluster',
|
3622
|
+
selected_subnet: '1.X.X.X',
|
3599
3623
|
iceCandidatesCount: 0,
|
3600
3624
|
}
|
3601
3625
|
);
|
@@ -2764,14 +2764,10 @@ describe('isSubnetReachable', () => {
|
|
2764
2764
|
});
|
2765
2765
|
|
2766
2766
|
it('returns true if the subnet is reachable', () => {
|
2767
|
-
assert(reachability.isSubnetReachable('1
|
2767
|
+
assert(reachability.isSubnetReachable('1'));
|
2768
2768
|
});
|
2769
2769
|
|
2770
2770
|
it(`returns false if the subnet is unreachable`, () => {
|
2771
|
-
assert(!reachability.isSubnetReachable('11
|
2772
|
-
});
|
2773
|
-
|
2774
|
-
it('returns null if the subnet is not provided', () => {
|
2775
|
-
assert.isNull(reachability.isSubnetReachable(undefined));
|
2771
|
+
assert(!reachability.isSubnetReachable('11'));
|
2776
2772
|
});
|
2777
2773
|
});
|