browser-tracker.setbuffersize
Home > @snowplow/browser-tracker > setBufferSize
setBufferSize() function
Set the buffer size Can be useful if you want to stop batching requests to ensure events start sending closer to event creation
Signature:declare function setBufferSize(newBufferSize: number, trackers?: Array<string>): void;
Parameters
Parameter | Type | Description |
---|---|---|
newBufferSize | number | The value with which to update the bufferSize to |
trackers | Array<string> | The tracker identifiers which will be flushed |
void