There are a number of really useful libraries that allow you scale across multiple servers via redis and emit messages from any part of your application.
If you’re using haproxy you may need to make a couple of adjustments to the config to get the sockets working correctly, but apart from that it should be fairly straight forward.
If you’re looking at adding socket based communication to your solution and need help please get in touch
Do you have an app/project you'd like a quote for?
Hi there, I’m Alex and I’d love to discuss your next project with you.
I’m happy to discuss requirements, timeline, budget and any other concerns you may have.