Real-time Communication
Gained hands-on experience with WebSockets (or similar real-time technologies) to enable instant messaging. Solved challenges related to connection stability, message ordering, and handling user presence (online/offline status).
Optimistic UI Updates
Implemented optimistic UI updates using TanStack Query. This ensures the chat interface feels incredibly responsive by displaying sent messages immediately before the server confirms receipt, rolling back only if an error occurs.
State Synchronization
Mastered the synchronization of client-side state with the server. Handled edge cases like multiple users typing simultaneously and ensuring all clients receive updates in real-time without manual refreshing.