tweak update stream

This commit is contained in:
Cadence Ember 2020-05-22 04:24:21 +12:00
parent f798bd158d
commit a83156e860
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 4 additions and 0 deletions

View File

@ -19,10 +19,14 @@ module.exports = [
}
})
streams.add(stream)
stream.push(":connected\n\n")
return {
statusCode: 200,
contentType: "text/event-stream",
headers: {
"X-Accel-Buffering": "no"
},
stream
}
}