MCPcopy Index your code
hub / github.com/codeaashu/claude-code / startHeartbeatTimer

Function startHeartbeatTimer

src/utils/sessionActivity.ts:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28let cleanupRegistered = false
29
30function startHeartbeatTimer(): void {
31 clearIdleTimer()
32 heartbeatTimer = setInterval(() => {
33 logForDiagnosticsNoPII('debug', 'session_keepalive_heartbeat', {
34 refcount,
35 })
36 if (isEnvTruthy(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES)) {
37 activityCallback?.()
38 }
39 }, SESSION_ACTIVITY_INTERVAL_MS)
40}
41
42function startIdleTimer(): void {
43 clearIdleTimer()

Callers 2

startSessionActivityFunction · 0.85

Calls 3

clearIdleTimerFunction · 0.85
logForDiagnosticsNoPIIFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected