From f3f2f30da95e8fe83721229b9a66e42d32608c47 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Mon, 9 Jun 2025 18:31:16 -0600 Subject: [PATCH] se supone que esto seria --- api/sse/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/sse/index.js b/api/sse/index.js index d346647..8545c10 100644 --- a/api/sse/index.js +++ b/api/sse/index.js @@ -7,8 +7,10 @@ export function registerSse(app) { res.set({ 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', - Connection: 'keep-alive' + 'Connection': 'keep-alive', + 'X-Accel-Buffering': 'no' // 👈 desactiva el buffering en Nginx }); + res.flushHeaders(); // Primer “hola”