MCPcopy Create free account
hub / github.com/altic-dev/Pilot / notifySubscribers

Method notifySubscribers

src/lib/session-store.ts:126–131  ·  view source on GitHub ↗

* Notify subscribers of session updates

(sessionId: string, session: SessionData)

Source from the content-addressed store, hash-verified

124 * Notify subscribers of session updates
125 */
126 private notifySubscribers(sessionId: string, session: SessionData): void {
127 const subs = this.subscribers.get(sessionId);
128 if (subs) {
129 subs.forEach((callback) => callback(session));
130 }
131 }
132
133 /**
134 * Start automatic cleanup of stale sessions

Callers 1

updateSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected