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

Method getSessionByNamespace

hub/src/sync/syncEngine.ts:197–204  ·  view source on GitHub ↗
(sessionId: string, namespace: string)

Source from the content-addressed store, hash-verified

195 }
196
197 getSessionByNamespace(sessionId: string, namespace: string): Session | undefined {
198 const session = this.sessionCache.getSessionByNamespace(sessionId, namespace)
199 ?? this.sessionCache.refreshSession(sessionId)
200 if (!session || session.namespace !== namespace) {
201 return undefined
202 }
203 return session
204 }
205
206 resolveSessionAccess(
207 sessionId: string,

Calls 1

refreshSessionMethod · 0.80

Tested by

no test coverage detected