MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / clearForegroundProbe

Function clearForegroundProbe

app/src/modules/websocket.js:54–69  ·  view source on GitHub ↗
(reason = '')

Source from the content-addressed store, hash-verified

52}
53
54export 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
71function reconnectFromForeground(reason) {
72 debugLog('foreground_reconnect', {

Callers 3

resetAppStateFunction · 0.90
reconnectFromForegroundFunction · 0.70
connectFunction · 0.70

Calls 2

debugLogFunction · 0.90
wsReadyStateNameFunction · 0.90

Tested by

no test coverage detected