From 99793f52cb9d8f940695ec5d5dd4d559ccbcacc4 Mon Sep 17 00:00:00 2001 From: KATT Date: Fri, 20 Oct 2023 16:20:44 +0200 Subject: [PATCH] reconnect in example --- examples/async/src/app/sse-infinite/StreamedTimeSSE.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/async/src/app/sse-infinite/StreamedTimeSSE.tsx b/examples/async/src/app/sse-infinite/StreamedTimeSSE.tsx index 3660860..c153642 100644 --- a/examples/async/src/app/sse-infinite/StreamedTimeSSE.tsx +++ b/examples/async/src/app/sse-infinite/StreamedTimeSSE.tsx @@ -11,6 +11,7 @@ export function StreamedTimeSSE() { useEffect(() => { const abortSignal = new AbortController(); createEventSource("/sse-infinite", { + reconnect: true, signal: abortSignal.signal, }) .then(async (shape) => {