Skip to content

Commit 4f27fe0

Browse files
authored
Merge pull request #279 from prgrms-web-devcourse-final-project/fix/277-SSE-retry
[fix] SSE 재연결 횟수 수정
2 parents 4c1da76 + 677bca3 commit 4f27fe0

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
@@ -21,8 +21,8 @@ export const useSSE = () => {
2121
}
2222

2323
const connectSSE = () => {
24-
if (reconnectAttemptsRef.current >= 3) {
25-
console.warn('🚫 SSE: 최대 재연결 횟수(3번) 초과, 더 이상 재연결하지 않습니다.');
24+
if (reconnectAttemptsRef.current >= 20) {
25+
console.warn('🚫 SSE: 최대 재연결 횟수(20번) 초과, 더 이상 재연결하지 않습니다.');
2626
return;
2727
}
2828

0 commit comments

Comments
 (0)