Send keepalive as a comment
Avoid invoking the event dispatching for keepalives.
This commit is contained in:
parent
ed67982ec0
commit
68f731f094
1 changed files with 1 additions and 1 deletions
|
@ -86,6 +86,6 @@ export async function broadcastUpdate(schedule: Schedule) {
|
|||
|
||||
function sendKeepalive() {
|
||||
for (const stream of streams.keys()) {
|
||||
sendMessage(stream, "data: keepalive\n\n");
|
||||
sendMessage(stream, ": keepalive\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue