Clean up uploaders and timers.
()
| 980 | |
| 981 | /** Clean up uploaders and timers. */ |
| 982 | close(): void { |
| 983 | this.closed = true |
| 984 | this.stopHeartbeat() |
| 985 | unregisterSessionActivityCallback() |
| 986 | if (this.streamEventTimer) { |
| 987 | clearTimeout(this.streamEventTimer) |
| 988 | this.streamEventTimer = null |
| 989 | } |
| 990 | this.streamEventBuffer = [] |
| 991 | this.streamTextAccumulator.byMessage.clear() |
| 992 | this.streamTextAccumulator.scopeToMessage.clear() |
| 993 | this.workerState.close() |
| 994 | this.eventUploader.close() |
| 995 | this.internalEventUploader.close() |
| 996 | this.deliveryUploader.close() |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 |
no test coverage detected