MCPcopy Create free account
hub / github.com/Roy3838/Observer / releaseStreamsForAgent

Method releaseStreamsForAgent

app/src/utils/streamManager.ts:176–184  ·  view source on GitHub ↗

Releases all streams used by a specific agent.

(agentId: string)

Source from the content-addressed store, hash-verified

174
175 /** Releases all streams used by a specific agent. */
176 public releaseStreamsForAgent(agentId: string): void {
177 Logger.debug("StreamManager", `Releasing all streams for agent '${agentId}'`);
178 this.userSets.forEach((users, _type) => {
179 if (users.has(agentId)) {
180 users.delete(agentId);
181 }
182 });
183 this.checkForTeardown();
184 }
185
186 // --- Subscriber Management API ---
187

Callers 15

handleApplyChangesFunction · 0.80
handleStopAllFunction · 0.80
handleStartTestFunction · 0.80
handleStopTestFunction · 0.80
MCPFunction · 0.80
stopMicFunction · 0.80
startMicFunction · 0.80
ObserverHeroFunction · 0.80
stopMicFunction · 0.80
startMicFunction · 0.80
startAgentLoopFunction · 0.80
stopAgentLoopFunction · 0.80

Calls 3

checkForTeardownMethod · 0.95
deleteMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected