Fix SSE buffering headers for local streams (#1006)

This commit is contained in:
vhqtvn
2026-04-23 19:58:26 +03:00
committed by GitHub
parent 4f60fce1e1
commit f0c3d5e326
3 changed files with 154 additions and 0 deletions
@@ -172,6 +172,7 @@ export const registerNotificationRoutes = (app, dependencies) => {
res.setHeader('Content-Type', 'text/event-stream; charset=utf-8');
res.setHeader('Cache-Control', 'no-cache, no-transform');
res.setHeader('Connection', 'keep-alive');
res.setHeader('X-Accel-Buffering', 'no');
res.flushHeaders?.();
const clients = getUiNotificationClients();
@@ -193,6 +193,7 @@ export const registerScheduledTaskRoutes = (app, dependencies) => {
res.setHeader('Content-Type', 'text/event-stream; charset=utf-8');
res.setHeader('Cache-Control', 'no-cache, no-transform');
res.setHeader('Connection', 'keep-alive');
res.setHeader('X-Accel-Buffering', 'no');
res.flushHeaders?.();
const clients = getOpenChamberEventClients();