Reconnecting Without Hammering the Server: Exponential Backoff with NetworkMonitor

How TermOnMac's iOS app handles lost WebSocket connections — exponential backoff, NWPathMonitor-driven immediate reconnect, input buffering, and a 5-minute total timeout.