Node.js based forum software built for the modern web
closes #5639
Barış Soner Uşaklıc0807ab327dd
diff --git a/src/socket.io/index.js b/src/socket.io/index.jsindex 93c1697c98..00d3433a3d 100644--- a/src/socket.io/index.js+++ b/src/socket.io/index.js@@ -219,7 +219,11 @@ function addRedisAdapter(io) {var redis = require('../database/redis');var pub = redis.connect();var sub = redis.connect();- io.adapter(redisAdapter({ pubClient: pub, subClient: sub }));+ io.adapter(redisAdapter({+ key: 'db:' + nconf.get('redis:database') + ':adapter_key',+ pubClient: pub,+ subClient: sub,+ }));} else if (nconf.get('isCluster') === 'true') {winston.warn('[socket.io] Clustering detected, you are advised to configure Redis as a websocket store.');}