diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index f2b4b0a..e7dfae6 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -370,11 +370,11 @@ io.origins('*:*') // for latest version function onCollection(err, collection) { let options = { tailable: true, - awaitData: true, + awaitdata: true, numberOfRetries: -1, tailableRetryInterval: 500 }; - var cursor = collection.find().cursor(options); + var cursor = collection.find().cursor(options).stream(); //var cursor = collection.find({}, options), // cursorStream = cursor.stream(), // itemsProcessed = 0;