mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-06-21 02:20:41 +00:00
feat: server page
This commit is contained in:
@@ -19,6 +19,10 @@ export default function useWebSocket(url: string): WebSocketHook {
|
||||
const connect = useCallback(() => {
|
||||
if (isUnmounted.current) return;
|
||||
|
||||
console.log("Connecting to WebSocket...");
|
||||
|
||||
console.log("WebSocket URL:", url);
|
||||
|
||||
const ws = new WebSocket(url);
|
||||
setSocket(ws);
|
||||
socketRef.current = ws;
|
||||
|
||||
Reference in New Issue
Block a user