livedesk 0.1.119 → 0.1.120
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/hub/src/remote-hub.js +13 -2
- package/package.json +2 -2
package/hub/src/remote-hub.js
CHANGED
|
@@ -3527,8 +3527,13 @@ export function createRemoteHub(options = {}) {
|
|
|
3527
3527
|
authenticated: false,
|
|
3528
3528
|
device: null,
|
|
3529
3529
|
inputOnly: false,
|
|
3530
|
+
frameOnly: false,
|
|
3530
3531
|
buffer: Buffer.alloc(0),
|
|
3531
|
-
pendingBinaryFrame: null
|
|
3532
|
+
pendingBinaryFrame: null,
|
|
3533
|
+
binaryQueue: [],
|
|
3534
|
+
binaryQueueDraining: false,
|
|
3535
|
+
binaryQueueDrops: 0,
|
|
3536
|
+
closed: false
|
|
3532
3537
|
};
|
|
3533
3538
|
|
|
3534
3539
|
const helloTimer = setTimeout(() => {
|
|
@@ -3554,7 +3559,7 @@ export function createRemoteHub(options = {}) {
|
|
|
3554
3559
|
const framePayload = state.buffer.subarray(0, byteLength);
|
|
3555
3560
|
state.buffer = state.buffer.subarray(byteLength);
|
|
3556
3561
|
state.pendingBinaryFrame = null;
|
|
3557
|
-
|
|
3562
|
+
enqueueAgentBinaryFrame(socket, state, header, framePayload);
|
|
3558
3563
|
continue;
|
|
3559
3564
|
}
|
|
3560
3565
|
|
|
@@ -3605,15 +3610,21 @@ export function createRemoteHub(options = {}) {
|
|
|
3605
3610
|
}
|
|
3606
3611
|
|
|
3607
3612
|
socket.on('close', () => {
|
|
3613
|
+
state.closed = true;
|
|
3614
|
+
state.binaryQueue.length = 0;
|
|
3608
3615
|
allSockets.delete(socket);
|
|
3609
3616
|
clearTimeout(helloTimer);
|
|
3610
3617
|
detachInputSocket(socket);
|
|
3618
|
+
detachFrameSocket(socket);
|
|
3611
3619
|
detachSocket(socket);
|
|
3612
3620
|
});
|
|
3613
3621
|
socket.on('error', err => {
|
|
3622
|
+
state.closed = true;
|
|
3623
|
+
state.binaryQueue.length = 0;
|
|
3614
3624
|
allSockets.delete(socket);
|
|
3615
3625
|
clearTimeout(helloTimer);
|
|
3616
3626
|
detachInputSocket(socket, err?.message || 'socket-error');
|
|
3627
|
+
detachFrameSocket(socket, err?.message || 'socket-error');
|
|
3617
3628
|
detachSocket(socket, err?.message || 'socket-error');
|
|
3618
3629
|
});
|
|
3619
3630
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.120",
|
|
4
4
|
"description": "LiveDesk Hub and client launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": ">=20"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@livedesk/client": "0.1.
|
|
33
|
+
"@livedesk/client": "0.1.84",
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^4.21.2",
|
|
36
36
|
"ws": "^8.18.3"
|