{"version":"2.1.50","anchor":"system-sleep-detection-for-websocket-connections","canonical_anchor":"system-sleep-detection-for-websocket-connections","heading":"System Sleep Detection for WebSocket Connections","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.50\/e\/system-sleep-detection-for-websocket-connections","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.50","markdown":"### System Sleep Detection for WebSocket Connections\n\n**What**\n\nImproved reconnection handling when the system wakes from sleep.\n\n**Details**\n\n- Detects large time gaps between reconnection attempts indicating system sleep\n- Resets the reconnection budget after sleep to avoid exhausting retries\n- Adds periodic keep-alive frames for more reliable connection maintenance\n\n**Evidence**\n\nSleep detection logic (search for `\"Detected system sleep\"`, `\"resetting reconnection budget\"`)"}