Browse Source

prox

master
zeus 4 years ago
parent
commit
52c2499138
  1. 8
      swarmlab-app/src/run/app.js

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

@ -475,12 +475,12 @@ async function iosend(data,issend,io,pubClient,user1){
console.log(issend + ' ---1 '+ JSON.stringify(reslog1)) console.log(issend + ' ---1 '+ JSON.stringify(reslog1))
//io.in(user).emit("logdata", reslog1); //io.in(user).emit("logdata", reslog1);
}else{ }else{
//if (await setkey(issend,'1')){
pubClient.set(issend, '1', function(err, res) {
console.log(issend + ' ---2 '+ JSON.stringify(reslog1)) console.log(issend + ' ---2 '+ JSON.stringify(reslog1))
if (await setkey(issend,'1')){
//pubClient.set(issend, '1', function(err, res) {
//});
io.in(user).emit("logdata", reslog1); io.in(user).emit("logdata", reslog1);
}); }
//}
} }

Loading…
Cancel
Save