This is the application that I have created but I have the following problems:

1. The client is able to send messages to other client but they also receive the same message as echo. So I would like to just be able to send a message and get a response from all connected parties, but no my own message.
2. What would it be the best way to handle disconnection from the client or the server.
3. I'm not asking for an answer (just indication), on how would it be the best way to allow a client to send files.