mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
slow down log to every second
This commit is contained in:
@@ -116,7 +116,7 @@ export default () => {
|
|||||||
};
|
};
|
||||||
count++;
|
count++;
|
||||||
res.write(`data: ${JSON.stringify(data)}\n\n`);
|
res.write(`data: ${JSON.stringify(data)}\n\n`);
|
||||||
}, 500);
|
}, 1000);
|
||||||
|
|
||||||
// if client closes connection
|
// if client closes connection
|
||||||
res.on('close', () => {
|
res.on('close', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user