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

Method getSession

hub/src/sync/syncEngine.ts:193–195  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

191 }
192
193 getSession(sessionId: string): Session | undefined {
194 return this.sessionCache.getSession(sessionId) ?? this.sessionCache.refreshSession(sessionId) ?? undefined
195 }
196
197 getSessionByNamespace(sessionId: string, namespace: string): Session | undefined {
198 const session = this.sessionCache.getSessionByNamespace(sessionId, namespace)

Callers 15

resolveNamespaceMethod · 0.95
handleRealtimeEventMethod · 0.95
waitForSessionActiveMethod · 0.95
startHubFunction · 0.45
createSocketServerFunction · 0.45
resolveSessionAccessFunction · 0.45
registerSessionHandlersFunction · 0.45
getStoredMetadataFunction · 0.45
expireInactiveMethod · 0.45

Calls 1

refreshSessionMethod · 0.80

Tested by 1

getStoredMetadataFunction · 0.36