Enrich websockets logs in front

This commit is contained in:
Zoe Roux 2025-12-21 18:13:00 +01:00
parent 1a1ccc9d4c
commit 5afe9a2b0c
No known key found for this signature in database

View File

@ -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;
};