|
the script above, which is my server, only returns the message to the sender.
a thousand clients can be using this server, but my server will only return the message to the client that sends a message to the server.
as you can see, it uses the getAddress() method to get the address of the sender.
So more accurately, my question is: how can I make the server get a message from one single client, and send it to all clients that have connected?
|