diff --git a/todoblue/src/app/(api)/useWs.ts b/todoblue/src/app/(api)/useWs.ts index fc7dc06..5f2132c 100644 --- a/todoblue/src/app/(api)/useWs.ts +++ b/todoblue/src/app/(api)/useWs.ts @@ -87,7 +87,7 @@ export function useWs(url: string | undefined, {onclose, onerror, onmessage, ono const openWebSocketAfterBackoff = backOff(openWebSocket); // noinspection JSIgnoredPromiseFromCall openWebSocketAfterBackoff() - }, [url, isBackingOff, webSocketState]) + }, [url, webSocket, isBackingOff, webSocketState]) return {webSocket, webSocketState, webSocketBackoffMs} }