From 85d6a3bbf3999510b5b50fe14ccd9ddabbd5d5eb Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 25 Nov 2020 22:10:13 +0200 Subject: [PATCH] redis --- swarmlab-app/src/run/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 06bc48a..e5a402c 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -448,6 +448,8 @@ function onCollection(err, collection) { var user = resob1.res25creator console.log('datauser ' + JSON.stringify(user)); //io.in(user).emit("logdata", reslog); + const sockets = await io.of('/').adapter.sockets(); + console.log(sockets); // a Set containing all the connected socket ids var user = 'anagnostopoulos@uniwa.gr' io.in(user).emit("logdata", reslog); itemsProcessed++;