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

Method getSessionByNamespace

hub/src/sync/sessionCache.ts:39–45  ·  view source on GitHub ↗
(sessionId: string, namespace: string)

Source from the content-addressed store, hash-verified

37 }
38
39 getSessionByNamespace(sessionId: string, namespace: string): Session | undefined {
40 const session = this.sessions.get(sessionId)
41 if (!session || session.namespace !== namespace) {
42 return undefined
43 }
44 return session
45 }
46
47 resolveSessionAccess(
48 sessionId: string,

Callers 1

mergeSessionDataMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected