From 859ac8ba2ec3b9fc26db5662301f09648e9adccd Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 24 Nov 2020 18:49:28 +0200 Subject: [PATCH] mongo tail --- swarmlab-app/src/run/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;