Start the status display update ticker.
()
| 433 | |
| 434 | /** Start the status display update ticker. */ |
| 435 | function startStatusUpdates(): void { |
| 436 | stopStatusUpdates() |
| 437 | // Call immediately so the first transition (e.g. Connecting → Ready) |
| 438 | // happens without delay, avoiding concurrent timer races. |
| 439 | updateStatusDisplay() |
| 440 | statusUpdateTimer = setInterval( |
| 441 | updateStatusDisplay, |
| 442 | STATUS_UPDATE_INTERVAL_MS, |
| 443 | ) |
| 444 | } |
| 445 | |
| 446 | /** Stop the status display update ticker. */ |
| 447 | function stopStatusUpdates(): void { |
no test coverage detected