(reason = '')
| 52 | } |
| 53 | |
| 54 | export function clearForegroundProbe(reason = '') { |
| 55 | if (S.foregroundProbeTimer) { |
| 56 | clearTimeout(S.foregroundProbeTimer); |
| 57 | S.foregroundProbeTimer = null; |
| 58 | } |
| 59 | if (S.foregroundProbeId) { |
| 60 | debugLog('foreground_probe_clear', { |
| 61 | reason, |
| 62 | probeId: S.foregroundProbeId, |
| 63 | wsState: wsReadyStateName(S.ws), |
| 64 | waiting: S.waiting, |
| 65 | sessionId: S.sessionId || null, |
| 66 | }); |
| 67 | } |
| 68 | S.foregroundProbeId = ''; |
| 69 | } |
| 70 | |
| 71 | function reconnectFromForeground(reason) { |
| 72 | debugLog('foreground_reconnect', { |
no test coverage detected