Construct the server-side infrastructure for a real-time chat application, enabling instant messaging between users and within designated chat rooms. This project will involve implementing WebSocket communication for low-latency message delivery, alongside traditional REST APIs for user and room management. The goal is to create a responsive and reliable backend that supports dynamic user interactions and message persistence.