From 195e40cb0f89abd85f8a3a5326060a0c26ba4982 Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 25 Nov 2020 14:09:59 +0200 Subject: [PATCH] redis --- swarmlab-app/src/run/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 1c4df06..09c71db 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -24,18 +24,24 @@ pubClient.on("connect", function() { console.log("You are now connected"); }); + setInterval(function () { var resob1 = {} resob1.data = '1' resob1.user25user = 'user' var resob1string = JSON.stringify(resob1); + console.log('-------------------- '+JSON.stringify(resob1string)); + pubClient.hmset('ekjgpiegwerpowfmfsdfsdgsk', resob1string, function(err, res) { + console.log('>>>>>>>>>eroor>>>>>>>>>>>>>>>>>>> '+JSON.stringify(err)); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(res)); }); pubClient.hgetall('ekjgpiegwerpowfmfsdfsdgsk', function(err, object) { + console.log('<<<<<<<<< console.error('listening on http://localhost:3000/')); console.error('socket.io example');