|
@ -474,7 +474,7 @@ function onCollection(err, collection) { |
|
|
console.log('datauser ' + JSON.stringify(user)); |
|
|
console.log('datauser ' + JSON.stringify(user)); |
|
|
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); |
|
|
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); |
|
|
pubClient.get(issend, function(err, object) { |
|
|
pubClient.get(issend, function(err, object) { |
|
|
if(err == null){ |
|
|
if(ocject == null){ |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
io.in(user).emit("logdata", reslog); |
|
|
io.in(user).emit("logdata", reslog); |
|
|
}); |
|
|
}); |
|
@ -483,41 +483,35 @@ function onCollection(err, collection) { |
|
|
}); |
|
|
}); |
|
|
})() |
|
|
})() |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
pubClient.get(pathfileval, function(err, object) { |
|
|
pubClient.get(pathfileval, function(err, object) { |
|
|
var objecttmp = JSON.parse(object); |
|
|
var objecttmp = JSON.parse(object); |
|
|
var resob1 = {} |
|
|
var resob1 = {} |
|
|
resob1.data = objecttmp.res25swarmlabname |
|
|
resob1.data = objecttmp.res25swarmlabname |
|
|
resob1.user25user = objecttmp.res25user |
|
|
resob1.user25user = objecttmp.res25user |
|
|
resob1.res25creator = objecttmp.res25creator |
|
|
resob1.res25creator = objecttmp.res25creator |
|
|
resob1.res25fileforce = objecttmp.res25fileforce |
|
|
resob1.res25fileforce = objecttmp.res25fileforce |
|
|
resob1.tailed_path = objecttmp.tailed_path |
|
|
resob1.tailed_path = objecttmp.tailed_path |
|
|
|
|
|
|
|
|
reslog.data = resob1 |
|
|
reslog.data = resob1 |
|
|
reslog.log = data |
|
|
reslog.log = data |
|
|
reslog.date = convertDateToUTC(now) |
|
|
reslog.date = convertDateToUTC(now) |
|
|
|
|
|
|
|
|
console.log('<<<<<<<<<<<---------------------<<<<<<<<<<<<<<<---------------------------<<<<<<<<<<<< '+JSON.stringify(object)); |
|
|
console.log('<<<<<<<<<<<---------------------<<<<<<<<<<<<<<<---------------------------<<<<<<<<<<<< '+JSON.stringify(object)); |
|
|
console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '+JSON.stringify(reslog)); |
|
|
console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '+JSON.stringify(reslog)); |
|
|
var user = objecttmp.user25user |
|
|
var user = objecttmp.user25user |
|
|
//io.join(user);
|
|
|
//io.join(user);
|
|
|
//io.to(user).emit(reslog);
|
|
|
//io.to(user).emit(reslog);
|
|
|
pubClient.get(issend, function(err, object) { |
|
|
|
|
|
if(ocject == null){ |
|
|
//console.log("RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRr", JSON.stringify(io.sockets.adapter.rooms)); // Set { <socket.id> }
|
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
|
|
|
io.in(user).emit("logdata", reslog); |
|
|
pubClient.get(issend, function(err, object) { |
|
|
}); |
|
|
if(err == null){ |
|
|
} |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
itemsProcessed++; |
|
|
io.in(user).emit("logdata", reslog); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
itemsProcessed++; |
|
|
|
|
|
}); |
|
|
}); |
|
|
//io.in(user).emit("logdata", reslog);
|
|
|
} |
|
|
//itemsProcessed++;
|
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|