Replies: 1 comment
|
Yes for http servers const io = new Server();
io.attach(httpServer1);
io.attach(httpServer2);Handlers stay shared so Across separate node processes it is different import { createAdapter } from "@socket.io/redis-adapter";
io.adapter(createAdapter(pubClient, subClient));And sticky sessions on the load balancer if polling is enabled |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Can I attach a single socket.io router to multiple http listeners (single process)?
All reactions