@devries-cameron20 / t3code Mirror · read-only / commits / b6eba3347d
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 07:30 UTC

fix: add logging for WebSocket errors (#948)

Co-authored-by: hobostay <hobostay@users.noreply.github.com>

Qiaochu Hu committed Mar 13, 2026 at 03:31 UTC b6eba3347d7a4153981269b064c4cee3b0166ebb
1 file changed +3 -3
apps/web/src/wsTransport.ts
+3 -3
@@ -186,10 +186,10 @@ export class WsTransport {
186 this.scheduleReconnect();
187 });
188
189 - ws.addEventListener("error", () => {
190 - // close will follow
189 + ws.addEventListener("error", (event) => {
190 + // Log WebSocket errors for debugging (close event will follow)
191 + console.warn("WebSocket connection error", { type: event.type, url: this.url });
192 });
192 - }
193
194 private handleMessage(raw: unknown) {
195 const result = decodeWsResponse(raw);