Implement a chat server.