Users talk by passing instant textual messages.
This program implements a simple textual user interface for typing a message and viewing messages as they arrive. Besides, the program allows running a number of predefined commands such as querying the list of users currently connected to the service. A chat client sends a message to the chat server rather then to other clients one by one. The server forwards the message to the rest of the clients. Any other string considered being a message that will be sent to all other users.