feat:remove reconnect error message

This commit is contained in:
litongjava
2025-01-20 19:29:32 -10:00
parent 80231c61fd
commit 203ab6215b

View File

@ -286,11 +286,12 @@ const useSocket = (
console.debug(new Date(), 'ws:max_retries'); console.debug(new Date(), 'ws:max_retries');
//setError(true); //setError(true);
toast.error( // toast.error(
'Unable to connect to server after multiple attempts. Please refresh the page to try again.', // 'Unable to connect to server after multiple attempts. Please refresh the page to try again.',
); // );
await new Promise((resolve) => setTimeout(resolve, 1000)); await new Promise((resolve) => setTimeout(resolve, 1000));
return; //return;
} }
const backoffDelay = getBackoffDelay(retryCountRef.current); const backoffDelay = getBackoffDelay(retryCountRef.current);