# Task ID: 22 # Title: In-Room Chat (Text & Emotes) # Status: pending # Dependencies: 10, 12 # Priority: medium # Description: Add a real-time chat feature within game rooms, supporting both text messages and a selection of emotes. # Details: Frontend: Implement a chat input field and message display area in the room UI. Include an emote picker. Backend: Implement WebSocket message type for `CHAT_MESSAGE`. Broadcast chat messages to all participants in the room. Implement basic message filtering for offensive content. # Test Strategy: Join a room with multiple players. Send text messages and emotes. Verify all players receive messages in real-time. Test message filtering. Check for UI responsiveness with many messages.