Client: Write and receive chat messages
Server: handle incoming and outgoing chat messages