Browse Source

redis

master
zeus 4 years ago
parent
commit
92aafbca4e
  1. 2
      swarmlab-app/src/run/app.js

2
swarmlab-app/src/run/app.js

@ -18,7 +18,7 @@ const pubClient = RedisClient.createClient({
//const pubClient = new RedisClient({ host: 'localhost', port: 6379 }); //const pubClient = new RedisClient({ host: 'localhost', port: 6379 });
const subClient = pubClient.duplicate(); const subClient = pubClient.duplicate();
io.adapter(createAdapter({ pubClient, subClient })); //io.adapter(createAdapter({ pubClient, subClient }));
pubClient.on("connect", function() { pubClient.on("connect", function() {
console.log("You are now connected"); console.log("You are now connected");

Loading…
Cancel
Save