livedesk 0.1.143 → 0.1.145
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
CHANGED
|
@@ -124,7 +124,7 @@ const DEFAULT_PUBLIC_IP_TIMEOUT_MS = 1800;
|
|
|
124
124
|
const DUPLICATE_DEVICE_ACTIVE_REJECT_MS = 15000;
|
|
125
125
|
const DUPLICATE_DEVICE_LOG_THROTTLE_MS = 60000;
|
|
126
126
|
const DUPLICATE_DEVICE_RETRY_AFTER_MS = 30000;
|
|
127
|
-
const AGENT_BINARY_INGRESS_QUEUE_PACKETS =
|
|
127
|
+
const AGENT_BINARY_INGRESS_QUEUE_PACKETS = 256;
|
|
128
128
|
const AGENT_BINARY_INGRESS_DRAIN_BUDGET_PACKETS = 64;
|
|
129
129
|
const SYNTHETIC_FRAME_DATA_URL = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAYAAAD0In+KAAAADElEQVR42mP8z8AAAAMBAQDJ/pLvAAAAAElFTkSuQmCC';
|
|
130
130
|
const SYNTHETIC_FRAME_PAYLOAD = Buffer.from(SYNTHETIC_FRAME_DATA_URL.split(',')[1], 'base64');
|
|
@@ -3312,16 +3312,6 @@ export function createRemoteHub(options = {}) {
|
|
|
3312
3312
|
device.activeLiveStream.monitorIndex = device.latestLiveFrame.monitorIndex;
|
|
3313
3313
|
device.activeLiveStream.monitorCount = device.latestLiveFrame.monitorCount;
|
|
3314
3314
|
device.counters.liveFramesReceived += 1;
|
|
3315
|
-
emitRemoteEvent('RemoteFrameReceived', device, {
|
|
3316
|
-
streamId,
|
|
3317
|
-
frameSeq,
|
|
3318
|
-
width: device.latestLiveFrame.width,
|
|
3319
|
-
height: device.latestLiveFrame.height,
|
|
3320
|
-
mode: device.latestLiveFrame.mode,
|
|
3321
|
-
transport,
|
|
3322
|
-
contentHash,
|
|
3323
|
-
sameContentStreak
|
|
3324
|
-
});
|
|
3325
3315
|
return true;
|
|
3326
3316
|
}
|
|
3327
3317
|
|
|
@@ -3389,13 +3379,6 @@ export function createRemoteHub(options = {}) {
|
|
|
3389
3379
|
mimeType,
|
|
3390
3380
|
byteLength
|
|
3391
3381
|
});
|
|
3392
|
-
emitRemoteEvent('RemoteAudioFrameReceived', device, {
|
|
3393
|
-
streamId,
|
|
3394
|
-
frameSeq,
|
|
3395
|
-
mimeType,
|
|
3396
|
-
byteLength,
|
|
3397
|
-
transport
|
|
3398
|
-
});
|
|
3399
3382
|
return true;
|
|
3400
3383
|
}
|
|
3401
3384
|
|
package/hub/src/server.js
CHANGED
|
@@ -20,9 +20,9 @@ const webIndexPath = resolve(webDistPath, 'index.html');
|
|
|
20
20
|
const packageInfo = JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json'), 'utf8'));
|
|
21
21
|
const httpHost = process.env.LIVEDESK_HUB_HTTP_HOST || '127.0.0.1';
|
|
22
22
|
const httpPort = Number(process.env.LIVEDESK_HUB_HTTP_PORT || process.env.PORT || 5179);
|
|
23
|
-
const frameBackpressureBytes = readPositiveIntegerEnv('LIVEDESK_FRAME_WS_BACKPRESSURE_BYTES',
|
|
24
|
-
const frameClientQueuePackets = readPositiveIntegerEnv('LIVEDESK_FRAME_WS_QUEUE_PACKETS',
|
|
25
|
-
const frameClientDrainBudgetPackets = readPositiveIntegerEnv('LIVEDESK_FRAME_WS_DRAIN_BUDGET_PACKETS',
|
|
23
|
+
const frameBackpressureBytes = readPositiveIntegerEnv('LIVEDESK_FRAME_WS_BACKPRESSURE_BYTES', 64 * 1024 * 1024);
|
|
24
|
+
const frameClientQueuePackets = readPositiveIntegerEnv('LIVEDESK_FRAME_WS_QUEUE_PACKETS', 256);
|
|
25
|
+
const frameClientDrainBudgetPackets = readPositiveIntegerEnv('LIVEDESK_FRAME_WS_DRAIN_BUDGET_PACKETS', 64);
|
|
26
26
|
const frameClients = new Set();
|
|
27
27
|
const frameClientsByDeviceId = new Map();
|
|
28
28
|
const frameWildcardClients = new Set();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.145",
|
|
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.99",
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^4.21.2",
|
|
36
36
|
"path-to-regexp": "0.1.13",
|