MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / getReconnectDelay

Function getReconnectDelay

static/js/app.js:1238–1240  ·  view source on GitHub ↗
(attempt)

Source from the content-addressed store, hash-verified

1236// ============== WebSocket 功能 ==============
1237
1238function getReconnectDelay(attempt) {
1239 return Math.min(WS_RECONNECT_BASE_DELAY * (2 ** Math.max(0, attempt - 1)), WS_RECONNECT_MAX_DELAY);
1240}
1241
1242function clearWebSocketReconnect() {
1243 if (wsReconnectTimer) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected