chat_server parses incoming messages