On Monday, August 18, 2014 4:52:23 PM UTC-4, Peter Širka wrote:
> Backend implementation of WebSocket in Socket.io is same as total.js. WebSocket wraps server with "sticky session", so this is a key (maybe).
Possibly, but even if a client gets the same instance it last connected to, you still need a way to pass messages to clients on other workers, which is why
socket.io has an adapter you can extend/overwrite that you can attach to a database. And each client checks for message periodically or using redis pub/sub.
So it becomes
Client 1(Instance 1) --(Message)--->Redis
Client 2(Instance 2) <----(message)--Redis