mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 08:36:29 +00:00
tweak update stream
This commit is contained in:
parent
f798bd158d
commit
a83156e860
1 changed files with 4 additions and 0 deletions
|
|
@ -19,10 +19,14 @@ module.exports = [
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
streams.add(stream)
|
streams.add(stream)
|
||||||
|
stream.push(":connected\n\n")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
contentType: "text/event-stream",
|
contentType: "text/event-stream",
|
||||||
|
headers: {
|
||||||
|
"X-Accel-Buffering": "no"
|
||||||
|
},
|
||||||
stream
|
stream
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue