|
|
@ -410,7 +410,7 @@ function onCollection(err, collection) { |
|
|
|
cursor.on('data', function (data) { |
|
|
|
reslog.log = data |
|
|
|
reslog.date = convertDateToUTC(now) |
|
|
|
console.log('data ' + data.value); |
|
|
|
console.log('data ' + JSON.stringify(reslog)); |
|
|
|
var user = "anagnostopoulos@uniwa.gr" |
|
|
|
//io.in(user).emit("logdata", data.value);
|
|
|
|
io.in(user).emit("logdata", reslog); |
|
|
|