mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-24 08:02:26 -04:00
Enrich websockets logs in front
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user