Skip to content

Commit

Permalink
add X-Accel-Buffering: no
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlen22 committed Jun 10, 2023
1 parent 9955c89 commit fa32bc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"list": "readme",
"plugin-priority": 10,
"license": "MIT - Copyright Arlen Beiler 2021",
"version": "1.0.2"
"version": "1.0.3"
}
2 changes: 2 additions & 0 deletions dist/server-sent-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ var SSEClient = /** @class */ (function () {
"Content-Type": "text/event-stream",
"Cache-Control": "no-cache",
'Connection': 'keep-alive',
// According to https://serverfault.com/questions/801628/for-server-sent-events-sse-what-nginx-proxy-configuration-is-appropriate
'X-Accel-Buffering': 'no',
}, headers));
// write the retry interval and event id immediately
this.write("", "", eventID);
Expand Down
2 changes: 2 additions & 0 deletions server-sent-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ export class SSEClient implements AnyClient<"stream"> {
"Content-Type": "text/event-stream",
"Cache-Control": "no-cache",
'Connection': 'keep-alive',
// According to https://serverfault.com/questions/801628/for-server-sent-events-sse-what-nginx-proxy-configuration-is-appropriate
'X-Accel-Buffering': 'no',
}, headers));

// write the retry interval and event id immediately
Expand Down

0 comments on commit fa32bc4

Please sign in to comment.