Fix handling

This commit is contained in:
Cryptkeeper 2015-12-18 19:04:30 -06:00
parent 88173ead11
commit 9dd81bcc66

6
app.js

@ -154,17 +154,17 @@ function startServices() {
}, 1); }, 1);
// Attach our listeners. // Attach our listeners.
client.on('disconnect', function(client) { client.on('disconnect', function() {
connectedClients -= 1; connectedClients -= 1;
logger.log('info', 'Client disconnected, total clients: %d', connectedClients); logger.log('info', 'Client disconnected, total clients: %d', connectedClients);
}); });
});
server.io.on('requestHistoryGraph', function(client) { client.on('requestHistoryGraph', function() {
// Send them the big 24h graph. // Send them the big 24h graph.
client.emit('historyGraph', graphData); client.emit('historyGraph', graphData);
}); });
});
startMainLoop(); startMainLoop();
}); });