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

Method getSession

hub/src/sync/sessionCache.ts:35–37  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

33 }
34
35 getSession(sessionId: string): Session | undefined {
36 return this.sessions.get(sessionId)
37 }
38
39 getSessionByNamespace(sessionId: string, namespace: string): Session | undefined {
40 const session = this.sessions.get(sessionId)

Callers 2

refreshSessionMethod · 0.45
recordSessionActivityMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected