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