Simulates a chat server and client, displaying messages to the user.