se supone que esto seria
This commit is contained in:
@@ -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”
|
||||
|
||||
Reference in New Issue
Block a user