fix(chat): log WebSocket message handling errors instead of swallowing (mc#2908 F6) #3032

Merged
devops-engineer merged 1 commits from fix/mobile-chat-f6-socket-error-logging into main 2026-06-19 05:52:53 +00:00
@@ -211,8 +211,10 @@ export function useChatSocket(
kind: (p.kind as string) || "",
});
}
} catch {
/* ignore */
} catch (err) {
// Don't silently swallow socket message parse/handling errors;
// otherwise malformed payloads fail invisibly (mc#2908 F6).
console.error("useChatSocket: failed to handle WebSocket message", err);
}
});
}