* Reset the liveness timer. If no SSE frame arrives within the timeout, * treat the connection as dead and reconnect.
()
| 554 | * treat the connection as dead and reconnect. |
| 555 | */ |
| 556 | private resetLivenessTimer(): void { |
| 557 | this.clearLivenessTimer() |
| 558 | this.livenessTimer = setTimeout(this.onLivenessTimeout, LIVENESS_TIMEOUT_MS) |
| 559 | } |
| 560 | |
| 561 | private clearLivenessTimer(): void { |
| 562 | if (this.livenessTimer) { |
no test coverage detected