This commit is contained in:
2012-07-11 20:07:50 -04:00
parent f9208989bb
commit 4af35ab0ba

View File

@@ -249,6 +249,14 @@ io.sockets.on('connection', function(socket) {
};
});
////////////////
socket.on('gethrdata', function(data) {
console.log('emit hrdata')
hrdatacollection.find().toArray(function(err, result) {
if (err) throw err;
socket.emit('populatehrdata', result);
});
});
////////////////
});