echoclaw-relay-agent 0.7.0 → 0.7.2
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/RelayClient.js +5 -0
- package/package.json +2 -2
package/dist/RelayClient.js
CHANGED
|
@@ -250,6 +250,11 @@ export class RelayClient extends EventEmitter {
|
|
|
250
250
|
this.sessionId = result.sessionId;
|
|
251
251
|
this.pairingCode = result.pairingCode;
|
|
252
252
|
this.frameCrypto = new FrameCrypto(result.sessionKey);
|
|
253
|
+
// Update transport URL so auto-reconnect uses ?resume=sessionId
|
|
254
|
+
// instead of the original /client/connect (which would create a new session)
|
|
255
|
+
if (this.transport) {
|
|
256
|
+
this.transport.setUrl(`${this.config.relayServer}/client/connect?resume=${result.sessionId}`);
|
|
257
|
+
}
|
|
253
258
|
// Persist session for future auto-resume
|
|
254
259
|
await this.sessionStore.save({
|
|
255
260
|
pairingCode: result.pairingCode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "echoclaw-relay-agent",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "EchoClaw Relay Connection — E2E encrypted relay transport, pairing, and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dev": "tsx src/cli.ts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"echoclaw-crypto": "
|
|
25
|
+
"echoclaw-crypto": "0.2.0",
|
|
26
26
|
"ws": "^8.18.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|