Hi, new to the forum! So this question is not Defold-bound, for example in my case it works with Love2D as well, but it’s just a matter of trying to figure out how to make this work, because I am missing something.
So I am using luasocket (but I am open to use other libraries if this can’t be solved with luasocket) and using UDP for a server-clients scenario (so more than 2 clients and 1 server). To make things easy to understand, the bare minimum scenario for this problem is 1 server and 2 clients and here is what I need to do as a pipeline:
1)client1 sends a string (message) to server, no message displayed to client1 yet
2)server receives message from client1, sends confirmation message back to client1 and also sends same message to client2
3)client1 screen now has a message saying that his message was successfully delivered to the server
4)client2 screen shows a message from the server, saying that client1
has sent a message
My problem is step 4 doesn’t work for me. I feel like I tried all sorts of combinations with port, address, etc, just doesn’t work. My skeleton project for this scenario is made in Love2D for fast testing, and I could share it if need be. But how would I implement this scenario pipeline above all on localhost? Thanks!