From 5a4c5849905059cb84dded3a42fce6cf7dee85c5 Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 25 Nov 2020 02:12:55 +0200 Subject: [PATCH] redis --- swarmlab-app/src/run/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index b594aa6..479168f 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -10,7 +10,10 @@ var io = require('socket.io')(http); const createAdapter = require('socket.io-redis'); //import { RedisClient } from 'redis'; const RedisClient = require("redis"); -const pubClient = RedisClient.createClient(); +const pubClient = RedisClient.createClient({ + host: 'redisserver', + port: 6379, + }); //const pubClient = new RedisClient({ host: 'localhost', port: 6379 }); const subClient = pubClient.duplicate();