diff --git a/sse.js b/sse.js index feef612..0a68319 100644 --- a/sse.js +++ b/sse.js @@ -20,6 +20,7 @@ function delay(message) { const timeout = (ms) => new Promise(resolve => setTimeout(resolve, ms)); +// The while loop doesnt wait for the promise so sometimes it doesnt send the update async function sse(request, response) { //header so setzen