Skip to main content

browser-tracker.flushbuffer

Home > @snowplow/browser-tracker > flushBuffer

flushBuffer() function

Send all events in the outQueue Only need to use this when sending events with a bufferSize of at least 2

Signature:
declare function flushBuffer(configuration?: FlushBufferConfiguration, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
configurationFlushBufferConfigurationThe configuration to use following flushing the buffer
trackersArray<string>The tracker identifiers which will be flushed
Returns:

void