ServerSocket Write to Client

Hello,

I have a client server app I am creating. I used the Xojo example provided and it works fine but I am having one issue. The one thing in the example that is not clear is how to write a message to a particular client socket. So lets say I have 2 connected clients. How do I write a message to client #1? Any help would be appreciated.

Thanks

you can loop over connected sockets on ServerSocket and look on each if it’s the one you need.
Than write to it.

Thanks Christian. I was able to finally figure it out with .ActiveConnections and using the .handler as a socket ID