feat(ws): stream data to line chart

This commit is contained in:
Leons Aleksandrovs
2025-07-07 19:14:06 +03:00
parent ab26e9881f
commit f0c94fa3ee
10 changed files with 313 additions and 135 deletions

View File

@@ -20,7 +20,6 @@ wss.on('connection', (ws) => {
let previousNumber = randomInt(MIN, MAX);
if (history.history.length > 0) {
previousNumber = history.history[history.history.length - 1].number;
console.log(`Previous number: ${previousNumber}`);
}
/*