@tiflis-io/tiflis-code-tunnel 0.3.15 → 0.3.16
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/main.js +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -248,7 +248,7 @@ var InMemoryClientRegistry = class {
|
|
|
248
248
|
*/
|
|
249
249
|
validateSubscriptions(deviceId, currentSocket) {
|
|
250
250
|
const existing = this.clients.get(deviceId);
|
|
251
|
-
if (existing && existing.
|
|
251
|
+
if (existing && existing.socket !== currentSocket) {
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
unregister(deviceId) {
|
|
@@ -1289,7 +1289,7 @@ var Workstation = class {
|
|
|
1289
1289
|
try {
|
|
1290
1290
|
this._socket.send(message);
|
|
1291
1291
|
return true;
|
|
1292
|
-
} catch
|
|
1292
|
+
} catch {
|
|
1293
1293
|
return false;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
@@ -1495,7 +1495,7 @@ var MobileClient = class {
|
|
|
1495
1495
|
try {
|
|
1496
1496
|
this._socket.send(message);
|
|
1497
1497
|
return true;
|
|
1498
|
-
} catch
|
|
1498
|
+
} catch {
|
|
1499
1499
|
return false;
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
@@ -1982,7 +1982,7 @@ var HttpClient = class _HttpClient {
|
|
|
1982
1982
|
let dropped = false;
|
|
1983
1983
|
if (this._messageQueue.length > _HttpClient.MAX_QUEUE_SIZE) {
|
|
1984
1984
|
const droppedCount = this._messageQueue.length - _HttpClient.MAX_QUEUE_SIZE;
|
|
1985
|
-
const oldestSequence = this._messageQueue[0]
|
|
1985
|
+
const oldestSequence = this._messageQueue[0]?.sequence;
|
|
1986
1986
|
this._messageQueue = this._messageQueue.slice(-_HttpClient.MAX_QUEUE_SIZE);
|
|
1987
1987
|
dropped = true;
|
|
1988
1988
|
this._logger?.warn({
|
package/package.json
CHANGED