Hi, I have a custom Redis engine based on the base faye-redis engine running under two server instances, behind an haproxy proxy (8000 load balances to 8001 and 8002). I can demonstrate that if client A instantiates a web socket on server A, and client B instantiates a web socket on server B, messages all work, but I would like to understand why. How does server A, when the engine gets the two clients from the Redis db and calls server.deliver, does it find the web socket that client B has with server B and deliver the message to client B?
If it uses the web socket, that explains client A getting the message, but again, client B has a web socket open on server B. Perhaps server A does some sort of notification, which causes the clients to go get messages? Perhaps it's a combination of the two: deliver messages directly to web socket clients, and notify other clients to go get the message? Perhaps the proxy is doing something for me.
Thanks for Faye and for grokking my question and hopefully a simple answer that enlightens me on this ignorance.