Start the status display update ticker.
()
| 421 | |
| 422 | /** Start the status display update ticker. */ |
| 423 | function startStatusUpdates(): void { |
| 424 | stopStatusUpdates() |
| 425 | // Call immediately so the first transition (e.g. Connecting → Ready) |
| 426 | // happens without delay, avoiding concurrent timer races. |
| 427 | updateStatusDisplay() |
| 428 | statusUpdateTimer = setInterval( |
| 429 | updateStatusDisplay, |
| 430 | STATUS_UPDATE_INTERVAL_MS, |
| 431 | ) |
| 432 | } |
| 433 | |
| 434 | /** Stop the status display update ticker. */ |
| 435 | function stopStatusUpdates(): void { |
no test coverage detected