server-sent-events
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -15,4 +15,4 @@ function sse(req, res, next) { | ||
// support running within the compression middleware | ||
if (res.flushHeaders && string.match(/\n\n$/)) { | ||
res.flushHeaders(); | ||
if (res.flush && string.match(/\n\n$/)) { | ||
res.flush(); | ||
} | ||
@@ -19,0 +19,0 @@ }; |
{ | ||
"name": "server-sent-events", | ||
"description": "Express middleware to push events/messages from the server to the browser, using EventSource.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Zac Barton" |
3531