* Stop the current stream
()
| 1152 | * Stop the current stream |
| 1153 | */ |
| 1154 | stop(): void { |
| 1155 | const hadLocalStream = this.abortController !== null |
| 1156 | this.cancelInFlightStream({ setReadyStatus: true }) |
| 1157 | if (hadLocalStream) { |
| 1158 | this.resetSessionGenerating() |
| 1159 | } |
| 1160 | this.events.stopped() |
| 1161 | } |
| 1162 | |
| 1163 | /** |
| 1164 | * Clear all messages |
no test coverage detected