mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: decompose Store into domain-specific substore classes
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ async function main() {
|
||||
const socketServer = createSocketServer({
|
||||
store,
|
||||
jwtSecret,
|
||||
getSession: (sessionId) => syncEngine?.getSession(sessionId) ?? store.getSession(sessionId),
|
||||
getSession: (sessionId) => syncEngine?.getSession(sessionId) ?? store.sessions.getSession(sessionId),
|
||||
onWebappEvent: (event: SyncEvent) => syncEngine?.handleRealtimeEvent(event),
|
||||
onSessionAlive: (payload) => syncEngine?.handleSessionAlive(payload),
|
||||
onSessionEnd: (payload) => syncEngine?.handleSessionEnd(payload),
|
||||
|
||||
Reference in New Issue
Block a user