Fix single-host-cluster socket.io (#6802)

It was silently dropping every message because every node thought it was the master node.
This commit is contained in:
Ben Lubar
2018-09-28 16:02:03 -05:00
committed by Barış Soner Uşaklı
parent f95308bf33
commit cf4ea94e6d
2 changed files with 15 additions and 4 deletions

View File

@@ -28,9 +28,7 @@ Sockets.init = function (server) {
});
if (nconf.get('singleHostCluster')) {
io.adapter(require('socket.io-adapter-cluster')({
client: require('./single-host-cluster'),
}));
io.adapter(require('./single-host-cluster'));
} else if (nconf.get('redis')) {
io.adapter(require('../database/redis').socketAdapter());
} else {