Releases all streams used by a specific agent.
(agentId: string)
| 168 | |
| 169 | /** Releases all streams used by a specific agent. */ |
| 170 | public releaseStreamsForAgent(agentId: string): void { |
| 171 | Logger.debug("StreamManager", `Releasing all streams for agent '${agentId}'`); |
| 172 | this.userSets.forEach((users, _type) => { |
| 173 | if (users.has(agentId)) { |
| 174 | users.delete(agentId); |
| 175 | } |
| 176 | }); |
| 177 | this.checkForTeardown(); |
| 178 | } |
| 179 | |
| 180 | // --- Subscriber Management API --- |
| 181 |
no test coverage detected