Use this when implementing features requiring real-time data sync like chat, live notifications, or collaborative editors. Describe the feature requirements to get a real-time sync architecture with WebSocket vs SSE selection criteria, connection management, and offline support — including implementation code.