slow down log to every second

This commit is contained in:
proddy
2024-10-20 15:02:25 +02:00
parent 798e20a266
commit d8f92e509a

View File

@@ -116,7 +116,7 @@ export default () => {
};
count++;
res.write(`data: ${JSON.stringify(data)}\n\n`);
}, 500);
}, 1000);
// if client closes connection
res.on('close', () => {