Browse Source

global

master
zeus 4 years ago
parent
commit
e29f8e2b59
  1. 9
      swarmlab-app/src/run/app.js

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

@ -190,9 +190,14 @@ global.online='ob';
global.pipelines=[];
function sendlog(reslog,pathfileval){
//io.in("iot").emit("message", reslog);
var usertmp = global.pipelines.find(x => x.pathlogfile==pathfileval);
console.log('-----------------------' + JSON.stringify(usertmp));
//for (var key in usertmp.data){
var user = usertmp.data[0].user25user;
// if(usertmp.data){
console.log('-----------------------' + JSON.stringify(usertmp));
io.in(user).emit("message", reslog);
// }
//}
}
function onWatcherReady(){
console.info('From here can you check for real changes, the initial scan has been completed.');

Loading…
Cancel
Save