From 32d8fa4358d0cd1f6f0dc48319b16d6c938b546e Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 22 Feb 2025 17:11:22 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20sse=20=EC=97=B0=EA=B2=B0=20=EC=A3=BC?= =?UTF-8?q?=EC=84=9D=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/useRealTimeNotification.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/stores/useRealTimeNotification.ts b/src/stores/useRealTimeNotification.ts index 454890c..67a12aa 100644 --- a/src/stores/useRealTimeNotification.ts +++ b/src/stores/useRealTimeNotification.ts @@ -17,14 +17,12 @@ const useRealTimeNotification = () => { }, ); - newEventSource.onopen = () => console.log("SSE 연결 ON ✅"); + newEventSource.onopen = () => {}; - newEventSource.onerror = (err) => { - console.error("SSE 연결 ERROR ❌", err); + newEventSource.onerror = () => { newEventSource.close(); setTimeout(() => { - console.log("♻️ SSE 재연결 시도..."); connectToSSE(); }, 5000); };