(delayStr: string, elapsedStr: string)
| 405 | }, |
| 406 | |
| 407 | updateReconnectingStatus(delayStr: string, elapsedStr: string): void { |
| 408 | stopConnecting() |
| 409 | clearStatusLines() |
| 410 | currentState = 'reconnecting' |
| 411 | |
| 412 | // QR code above the status line |
| 413 | if (qrVisible) { |
| 414 | for (const line of qrLines) { |
| 415 | writeStatus(`${chalk.dim(line)}\n`) |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | const frame = |
| 420 | BRIDGE_SPINNER_FRAMES[connectingTick % BRIDGE_SPINNER_FRAMES.length]! |
| 421 | connectingTick++ |
| 422 | writeStatus( |
| 423 | `${chalk.yellow(frame)} ${chalk.yellow('Reconnecting')} ${chalk.dim('\u00b7')} ${chalk.dim(`retrying in ${delayStr}`)} ${chalk.dim('\u00b7')} ${chalk.dim(`disconnected ${elapsedStr}`)}\n`, |
| 424 | ) |
| 425 | }, |
| 426 | |
| 427 | updateFailedStatus(error: string): void { |
| 428 | stopConnecting() |
nothing calls this directly
no test coverage detected