## Real-Time Chat (WebSockets)

**Why deferred:** Requires WebSocket lifecycle management, reconnection
logic, message queuing during disconnection, and race condition handling
between HTTP and WebSocket delivery.

**Additional note (discovered during Chapter 4 experiment):** The
socket.io-client library uses an XMLHttpRequest polling fallback that
causes initialization errors on Android 10 and below, even when the
WebSocket connection itself is never used. Any future WebSocket
implementation must be evaluated against the full target device range
before enabling for all users, and must use a feature flag to control
rollout.

**Current approach:** HTTP polling at five-second intervals.

**Reconsider when:** Daily active message volume exceeds 10,000 messages
or user feedback identifies polling latency as a pain point.
