@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.
- package/dist/index.js +7 -1
- 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
|
-
|
|
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) {
|