MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / subscribeToSession

Function subscribeToSession

apps/web/src/components/app-builder/ProjectManager.ts:108–115  ·  view source on GitHub ↗
(session: AppBuilderSession)

Source from the content-addressed store, hash-verified

106 }
107
108 function subscribeToSession(session: AppBuilderSession): void {
109 const unsubscribe = session.subscribe(() => {
110 const active = getActiveSession();
111 const isStreaming = active?.getState().isStreaming ?? false;
112 store.setState({ isStreaming });
113 });
114 sessionUnsubscribes.push(unsubscribe);
115 }
116
117 /**
118 * Builds sessions from backend project data.

Callers 2

handleSessionChangedFunction · 0.85
createProjectManagerFunction · 0.85

Calls 4

getActiveSessionFunction · 0.85
subscribeMethod · 0.80
pushMethod · 0.80
getStateMethod · 0.45

Tested by

no test coverage detected