squad-openclaw 2026.2.1814 → 2026.2.1815
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/index.js +15 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1257,11 +1257,8 @@ var RelayClient = class {
|
|
|
1257
1257
|
const msg = innerMsg;
|
|
1258
1258
|
if (msg.type === "event" && typeof msg.event === "string" && msg.event.startsWith("relay.")) {
|
|
1259
1259
|
if (msg.event === "relay.user.connected") {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
console.log(`[relay-client] User ${userId} connected via relay \u2014 creating local WS`);
|
|
1263
|
-
this.createUserConnection(userId);
|
|
1264
|
-
}
|
|
1260
|
+
console.log(`[relay-client] User ${userId} connected via relay \u2014 creating local WS`);
|
|
1261
|
+
this.createUserConnection(userId);
|
|
1265
1262
|
}
|
|
1266
1263
|
return;
|
|
1267
1264
|
}
|
|
@@ -1367,16 +1364,19 @@ var RelayClient = class {
|
|
|
1367
1364
|
});
|
|
1368
1365
|
localWs.on("close", (code, reason) => {
|
|
1369
1366
|
console.log(`[relay-client] Local WS for user ${userId} closed: ${code} ${reason.toString()}`);
|
|
1370
|
-
this.userConnections.
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1367
|
+
const current = this.userConnections.get(userId);
|
|
1368
|
+
if (current && current.localWs === localWs) {
|
|
1369
|
+
this.userConnections.delete(userId);
|
|
1370
|
+
this.sendToRelay({
|
|
1371
|
+
type: "relay.forward",
|
|
1372
|
+
userId,
|
|
1373
|
+
inner: {
|
|
1374
|
+
type: "event",
|
|
1375
|
+
event: "relay.gateway.connection.closed",
|
|
1376
|
+
payload: { code }
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
1380
|
});
|
|
1381
1381
|
localWs.on("error", (err2) => {
|
|
1382
1382
|
console.error(`[relay-client] Local WS error for user ${userId}:`, err2.message);
|
package/package.json
CHANGED