diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 96e977f..6d1638c 100755 --- a/swarmlab-app/src/run/app.js +++ b/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.');