mirror of
https://github.com/sstent/node.git
synced 2026-01-25 06:31:37 +00:00
ook
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
////////////////
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user