MCPcopy Index your code
hub / github.com/codeaashu/claude-code / manualReconnect

Function manualReconnect

src/server/web/public/terminal.js:8898–8905  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8896 if (reconnectTimer) clearTimeout(reconnectTimer);
8897 reconnectSub.textContent = `Retrying in ${Math.round(reconnectDelay / 1e3)}s\u2026`;
8898 reconnectTimer = setTimeout(() => connect(), reconnectDelay);
8899 reconnectDelay = Math.min(reconnectDelay * 2, RECONNECT_MAX_MS);
8900}
8901function manualReconnect() {
8902 if (reconnectTimer) clearTimeout(reconnectTimer);
8903 reconnectDelay = RECONNECT_BASE_MS;
8904 ws == null ? void 0 : ws.close();
8905 ws = null;
8906 term.clear();
8907 connect();
8908}

Callers 1

setupBarToggleFunction · 0.70

Calls 3

connectFunction · 0.70
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected