Skip to content

Commit 9c2e84f

Browse files
committed
fix: SSE 재연결 시도 횟수 수정
1 parent 58d7879 commit 9c2e84f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useSSE.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export const useSSE = () => {
7777

7878
eventSource.close();
7979

80-
if (reconnectAttemptsRef.current < 3) {
80+
if (reconnectAttemptsRef.current < 20) {
8181
reconnectAttemptsRef.current += 1;
8282
console.warn(
83-
`⚠️ SSE: 재연결 시도 중... (남은 재연결 횟수: ${3 - reconnectAttemptsRef.current})`,
83+
`⚠️ SSE: 재연결 시도 중... (남은 재연결 횟수: ${20 - reconnectAttemptsRef.current})`,
8484
);
8585
setTimeout(connectSSE, 1000);
8686
} else {

0 commit comments

Comments
 (0)