MCPcopy Create free account
hub / github.com/winfunc/opcode / startFlushInterval

Method startFlushInterval

src/lib/analytics/index.ts:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

initializeMethod · 0.95

Calls 2

flushEventsMethod · 0.95
isEnabledMethod · 0.45

Tested by

no test coverage detected