feat(ws): stream data to line chart
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user