<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _handle_chat(self, data):
 """Handle chat messages"""


        self.conn.enqueue_data(
            "chat", ChatMessage.from_data(self.room, self.conn, data)
        )