Releases all streams used by a specific agent.
(agentId: string)
| 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 |
no test coverage detected