only publish to one redis client in WebsocketLoadBalancer

but listen to all of them
This commit is contained in:
Brian Gough 2019-07-09 12:03:13 +01:00
parent 999cbd8ee6
commit 580b100362

View file

@ -6,7 +6,7 @@ EventLogger = require "./EventLogger"
HealthCheckManager = require "./HealthCheckManager"
module.exports = WebsocketLoadBalancer =
rclientPubList: RedisClientManager.createClientList(Settings.redis.pubsub, Settings.redis.unusedpubsub)
rclientPubList: RedisClientManager.createClientList(Settings.redis.pubsub)
rclientSubList: RedisClientManager.createClientList(Settings.redis.pubsub, Settings.redis.unusedpubsub)
emitToRoom: (room_id, message, payload...) ->