|
@ -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"); |
|
|