MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resetLivenessTimer

Method resetLivenessTimer

src/cli/transports/SSETransport.ts:556–559  ·  view source on GitHub ↗

* Reset the liveness timer. If no SSE frame arrives within the timeout, * treat the connection as dead and reconnect.

()

Source from the content-addressed store, hash-verified

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) {

Callers 2

connectMethod · 0.95
readStreamMethod · 0.95

Calls 1

clearLivenessTimerMethod · 0.95

Tested by

no test coverage detected