From 5afe9a2b0c9f3f92d059dfd56540d60d06f12df1 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 21 Dec 2025 18:13:00 +0100 Subject: [PATCH] Enrich websockets logs in front --- front/src/query/websockets.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/front/src/query/websockets.ts b/front/src/query/websockets.ts index 1c242af0..fcbd7d77 100644 --- a/front/src/query/websockets.ts +++ b/front/src/query/websockets.ts @@ -21,8 +21,13 @@ export const useWebsockets = ({ }); useEffect(() => { - console.log(ret.readyState); - }, [ret.readyState]); + console.log( + "websocket connected to:", + `${apiUrl}/api/ws`, + "status:", + ret.readyState, + ); + }, [apiUrl, ret.readyState]); return ret; };