- Real-Time Messaging: Instant message delivery using WebSocket via Socket.IO.
- Online User Detection: Display active users in real-time based on connected sockets.
- JWT Authentication with Cookies: Secure login system with middleware-based socket authentication.
- Private Chat System: User-to-user private messaging using mapped socket IDs.
- Session Persistence: Automatically reconnect and restore user presence after refresh.
- Production-Ready Deployment: Configured for cloud deployment with proper CORS and WebSocket handling.
- Vite + React: Frontend stack for fast development, instant HMR, and highly optimized production builds.
- Tailwind CSS: Utility-first CSS framework for building modern and responsive UI.
- DaisyUI: Component library built on top of Tailwind CSS to speed up UI development.
- Express.js: Backend framework for handling APIs and middleware.
- Socket.IO: Core technology for enabling real-time, bidirectional communication.
- MongoDB: NoSQL database for storing users, messages, and chat relationships.
- JWT (JSON Web Token): Secure authentication mechanism using HTTP-only cookies.
- Axios: HTTP client for handling API communication from the frontend.
- Handling WebSocket authentication using cookies and JWT
- Maintaining socket-user mapping for targeted message delivery
- Dealing with CORS issues in production environments
- Handling server sleep & cold starts on cloud platforms
- Ensuring Socket.IO remains stable under reconnect conditions


