Send keepalive as a comment
All checks were successful
/ build (push) Successful in 1m20s
/ deploy (push) Successful in 16s

Avoid invoking the event dispatching for keepalives.
This commit is contained in:
Hornwitser 2025-05-25 23:38:24 +02:00
parent ed67982ec0
commit 68f731f094

View file

@ -86,6 +86,6 @@ export async function broadcastUpdate(schedule: Schedule) {
function sendKeepalive() { function sendKeepalive() {
for (const stream of streams.keys()) { for (const stream of streams.keys()) {
sendMessage(stream, "data: keepalive\n\n"); sendMessage(stream, ": keepalive\n");
} }
} }