Browse Source

async

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

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

@ -442,8 +442,11 @@ function onCollection(err, collection) {
var itemsProcessed = 0; var itemsProcessed = 0;
var reslog = new Object(); var reslog = new Object();
var reslog1 = new Object();
var now = new Date(); var now = new Date();
cursor.on('data', function (data) { cursor.on('data', function (data) {
reslog1.log=data
io.in('anagnostopoulos@uniwa.gr').emit("logdata", reslog1);
(async() => { (async() => {
var issendob = {}; var issendob = {};
issendob.message = data.message issendob.message = data.message

Loading…
Cancel
Save