add sse comment
This commit is contained in:
parent
f8f6e73fdc
commit
e8aeac48c5
1
sse.js
1
sse.js
@ -20,6 +20,7 @@ function delay(message) {
|
|||||||
const timeout = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
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) {
|
async function sse(request, response) {
|
||||||
|
|
||||||
//header so setzen
|
//header so setzen
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user