snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.flushbuffer.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [flushBuffer](./browser-tracker.flushbuffer.md)

## flushBuffer() function

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

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  configuration | FlushBufferConfiguration | The configuration to use following flushing the buffer |
|  trackers | Array&lt;string&gt; | The tracker identifiers which will be flushed |

<b>Returns:</b>

void