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');