I’m currently looking into IPCSockets and how I could use it to have multiple SA(Stand alone) WE apps talk to each other on the same server. They are multiple instances of the same app behind HAProxy…
Am I correct when thinking that one socket can only have one connection at a time?
Should I build a “server” app that holds one socket per WE app that in turn relays a received message to all other sockets?
Any clever ideas on how to build this kind of local app communication?
Keep in mind I’m new to sockets and app communication.
Have the app be able to go either way. On startup, try to connect. If you get a connection, then there is already a Server and you are a Client. If not, then set up a ServerSocket and start listening. You are now the Server. Subsequent instances of the app will become Clients.