We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8cb66 commit d6737efCopy full SHA for d6737ef
test/index.ts
@@ -75,7 +75,8 @@ describe("@socket.io/redis-adapter", () => {
75
clientSockets[1].on("test", () => done());
76
clientSockets[2].on("test", shouldNotHappen(done));
77
78
- servers[0].to("room1").emit("test");
+ // delay is needed for the sharded adapter in dynamic mode
79
+ setTimeout(() => servers[0].to("room1").emit("test"), 50);
80
});
81
82
it("broadcasts to all clients except in room", (done) => {
0 commit comments