Fix SSE buffering headers for local streams (#1006)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user