MCPcopy Create free account
hub / github.com/freecodexyz/free-code / onConnectTimeout

Function onConnectTimeout

src/bridge/remoteBridgeCore.ts:301–309  ·  view source on GitHub ↗
(cause: ConnectCause)

Source from the content-addressed store, hash-verified

299 // signal for the `started → (silence)` gap.
300 let connectDeadline: ReturnType<typeof setTimeout> | undefined
301 function onConnectTimeout(cause: ConnectCause): void {
302 if (tornDown) return
303 logEvent('tengu_bridge_repl_connect_timeout', {
304 v2: true,
305 elapsed_ms: cfg.connect_timeout_ms,
306 cause:
307 cause as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
308 })
309 }
310
311 // ── 5. JWT refresh scheduler ────────────────────────────────────────────
312 // Schedule a callback 5min before expiry (per response.expires_in). On fire,

Callers

nothing calls this directly

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected