There is a problem that if you quickly update the page, the script crashes, that is, the node falls, with the message:
TypeError: Cannot read property 'forEach' of undefined
I understand the script does not have time to receive data from the response, how to fix the problem?
function test(){ helf.send("clientlist", function(err, response){ response.forEach(function(response) { socket.emit('test123', { name: response.client_nickname, cid: response.cid }); }); }); } setInterval(function() { test() }, 1000 );