@clawchatsai/connector 0.0.71 → 0.0.72

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -612,8 +612,14 @@ function processAuthenticatedMessage(dc, connectionId, msg, ctx) {
612
612
  }
613
613
  break;
614
614
  }
615
+ case 'ping':
616
+ dc.send(JSON.stringify({ type: 'pong' }));
617
+ break;
615
618
  default:
616
- dc.send(JSON.stringify({ type: 'error', message: 'unknown message type' }));
619
+ // Unknown message type ignore silently.
620
+ // (Sending an error response would break heartbeat backward-compat
621
+ // on future clients that probe for new capabilities.)
622
+ break;
617
623
  }
618
624
  }
619
625
  async function handleRpcMessage(dc, msg, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",