livedesk 0.1.433 → 0.1.434
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/server.js +6 -1
- package/package.json +1 -1
package/hub/src/server.js
CHANGED
|
@@ -4220,7 +4220,12 @@ inputWss.on('connection', ws => {
|
|
|
4220
4220
|
return;
|
|
4221
4221
|
}
|
|
4222
4222
|
const deviceId = String(payload?.deviceId || '').trim();
|
|
4223
|
-
const inputEventId = String(
|
|
4223
|
+
const inputEventId = String(
|
|
4224
|
+
payload?.input?.inputEventId
|
|
4225
|
+
|| payload?.inputEventId
|
|
4226
|
+
|| payload?.requestId
|
|
4227
|
+
|| ''
|
|
4228
|
+
).trim() || crypto.randomUUID();
|
|
4224
4229
|
const input = payload?.input && typeof payload.input === 'object'
|
|
4225
4230
|
? { ...payload.input, inputEventId, hubConnectionId: ws.liveDeskInputClientId, hubReceivedAtEpochMs: Date.now() }
|
|
4226
4231
|
: { ...payload, inputEventId, hubConnectionId: ws.liveDeskInputClientId, hubReceivedAtEpochMs: Date.now() };
|