Browse Source

sync

master
zeus 4 years ago
parent
commit
92c98b98a6
  1. 2
      swarmlab-app/src/run/app.js

2
swarmlab-app/src/run/app.js

@ -465,6 +465,7 @@ function onCollection(err, collection) {
if(object){ if(object){
reslog.log = data reslog.log = data
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"")
/*
(async() => { (async() => {
await pubClient.get(issend, function(err, object) { await pubClient.get(issend, function(err, object) {
if(object){ if(object){
@ -475,6 +476,7 @@ function onCollection(err, collection) {
} }
}); });
})() //await inside yes })() //await inside yes
*/
io.in(user1).emit("logdata", reslog); io.in(user1).emit("logdata", reslog);
console.log(' --- '+ JSON.stringify(reslog)) console.log(' --- '+ JSON.stringify(reslog))
//console.log(' --->> '+ JSON.stringify(user1)) //console.log(' --->> '+ JSON.stringify(user1))

Loading…
Cancel
Save