squad-openclaw 2026.2.1812 → 2026.2.1814
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 +13 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1290,6 +1290,14 @@ var RelayClient = class {
|
|
|
1290
1290
|
return;
|
|
1291
1291
|
}
|
|
1292
1292
|
this.injectDeviceIdentity(conn, msg);
|
|
1293
|
+
if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
|
|
1294
|
+
conn.localWs.once("open", () => {
|
|
1295
|
+
conn.localWs.send(JSON.stringify(msg));
|
|
1296
|
+
});
|
|
1297
|
+
} else {
|
|
1298
|
+
conn.localWs.send(JSON.stringify(msg));
|
|
1299
|
+
}
|
|
1300
|
+
return;
|
|
1293
1301
|
}
|
|
1294
1302
|
if (!conn.connectHandshakeComplete) {
|
|
1295
1303
|
conn.pendingMessages.push(msg);
|
|
@@ -1444,9 +1452,12 @@ var RelayClient = class {
|
|
|
1444
1452
|
await e2e.deriveSharedSecret(browserPublicKey);
|
|
1445
1453
|
conn.e2e = e2e;
|
|
1446
1454
|
this.sendToRelay({
|
|
1447
|
-
type: "relay.
|
|
1455
|
+
type: "relay.forward",
|
|
1448
1456
|
userId,
|
|
1449
|
-
|
|
1457
|
+
inner: {
|
|
1458
|
+
type: "relay.e2e.exchange",
|
|
1459
|
+
publicKey: gatewayPublicKey
|
|
1460
|
+
}
|
|
1450
1461
|
});
|
|
1451
1462
|
console.log(`[relay-client] E2E established for user ${userId}`);
|
|
1452
1463
|
} catch (err2) {
|
package/package.json
CHANGED