docs: explain swallowed JSON parse error in relay-health.mjs

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-17 18:32:22 +00:00
1 parent 264e2b5f61
commit ec769d39cb
1 file changed
+2
+2
View File
@@ -138,6 +138,8 @@ async function probePublishRead(relayUrl, namespace, timeoutMs) {
try {
message = JSON.parse(raw.toString());
} catch {
// Ignore malformed messages. The relay might be sending non-JSON data
// or we might have a protocol mismatch. We only care about valid JSON.
return;
}
if (!Array.isArray(message) || message.length < 2) return;