()
| 241 | } |
| 242 | |
| 243 | private startFlushInterval(): void { |
| 244 | // Flush events every 5 seconds |
| 245 | this.flushInterval = setInterval(() => { |
| 246 | if (this.consentManager.isEnabled()) { |
| 247 | this.flushEvents(); |
| 248 | } |
| 249 | }, 5000); |
| 250 | } |
| 251 | |
| 252 | shutdown(): void { |
| 253 | if (this.flushInterval) { |
no test coverage detected