MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / startHeartbeatTimer

Function startHeartbeatTimer

source code/utils/sessionActivity.ts:32–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

startSessionActivityFunction · 0.85

Calls 3

clearIdleTimerFunction · 0.85
logForDiagnosticsNoPIIFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected