You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ioredis to create a cluster mode redis but i fonud redis-adapter getNumSub function
this.pubClient.constructor.name not "Cluster"
so in redis Cluster mode fetchSockets function only can get current server users
The text was updated successfully, but these errors were encountered:
"ioredis": "^5.0.4",
const { createAdapter } = require("./redis-adapter");
const redisUrlArr = [url1,url2,...]
const Redis = require("ioredis");
const pubClient = new Redis.Cluster(redisUrlArr);
const subClient = pubClient.duplicate();
const io = require("socket.io")(server, {
transports: ["websocket"],
adapter: createAdapter(pubClient, subClient),
cors: {
origin: "*",
methods: ["GET", "POST"],
},
});
I am using ioredis to create a cluster mode redis but i fonud redis-adapter getNumSub function
this.pubClient.constructor.name not "Cluster"
so in redis Cluster mode fetchSockets function only can get current server users
The text was updated successfully, but these errors were encountered: