@webex/internal-plugin-mercury 3.9.0 → 3.10.0-multi-llms.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mercury.js +571 -164
- package/dist/mercury.js.map +1 -1
- package/dist/socket/socket-base.js +15 -0
- package/dist/socket/socket-base.js.map +1 -1
- package/package.json +18 -18
- package/src/mercury.js +589 -137
- package/src/socket/socket-base.js +13 -0
- package/test/unit/spec/mercury-events.js +20 -2
- package/test/unit/spec/mercury.js +737 -23
- package/test/unit/spec/socket.js +6 -6
package/test/unit/spec/socket.js
CHANGED
|
@@ -466,12 +466,12 @@ describe('plugin-mercury', () => {
|
|
|
466
466
|
.then(() => assert.calledWith(mockWebSocket.close, 3001, 'Custom Normal')));
|
|
467
467
|
|
|
468
468
|
it('accepts the logout reason', () =>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
469
|
+
socket
|
|
470
|
+
.close({
|
|
471
|
+
code: 3050,
|
|
472
|
+
reason: 'done (permanent)',
|
|
473
|
+
})
|
|
474
|
+
.then(() => assert.calledWith(mockWebSocket.close, 3050, 'done (permanent)')));
|
|
475
475
|
|
|
476
476
|
it('can safely be called called multiple times', () => {
|
|
477
477
|
const p1 = socket.close();
|