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

Function registerSessionActivityCallback

src/utils/sessionActivity.ts:60–66  ·  view source on GitHub ↗
(cb: () => void)

Source from the content-addressed store, hash-verified

58}
59
60export function registerSessionActivityCallback(cb: () => void): void {
61 activityCallback = cb
62 // Restart timer if work is already in progress (e.g. reconnect during streaming)
63 if (refcount > 0 && heartbeatTimer === null) {
64 startHeartbeatTimer()
65 }
66}
67
68export function unregisterSessionActivityCallback(): void {
69 activityCallback = null

Callers 2

handleOpenEventMethod · 0.85
initializeMethod · 0.85

Calls 1

startHeartbeatTimerFunction · 0.85

Tested by

no test coverage detected