mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-30 16:50:28 -05:00
Enrich websockets logs in front
This commit is contained in:
parent
1a1ccc9d4c
commit
5afe9a2b0c
@ -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;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user