MCPcopy Create free account
hub / github.com/tiann/hapi / isStaleRuntimeKeepAlive

Method isStaleRuntimeKeepAlive

hub/src/sync/sessionCache.ts:478–485  ·  view source on GitHub ↗
(
        sessionId: string,
        key: RuntimeConfigKey,
        payloadTime: number
    )

Source from the content-addressed store, hash-verified

476 }
477
478 private isStaleRuntimeKeepAlive(
479 sessionId: string,
480 key: RuntimeConfigKey,
481 payloadTime: number
482 ): boolean {
483 const updatedAt = this.runtimeConfigUpdatedAtBySessionId.get(sessionId)?.[key]
484 return updatedAt !== undefined && payloadTime < updatedAt
485 }
486
487 async renameSession(sessionId: string, name: string): Promise<void> {
488 const session = this.sessions.get(sessionId)

Callers 1

handleSessionAliveMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected