<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [Emitter](./node-tracker.emitter.md)

## Emitter interface

Emitter is responsible for sending events to the collector. It manages the event queue and sends events in batches depending on configuration.

<b>Signature:</b>

```typescript
interface Emitter 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [flush](./node-tracker.emitter.flush.md) | () =&gt; Promise&lt;void&gt; | Forces the emitter to send all events in the event store to the collector. |
|  [input](./node-tracker.emitter.input.md) | (payload: Payload) =&gt; Promise&lt;void&gt; | Adds a payload to the event store or sends it to the collector. |
|  [setAnonymousTracking](./node-tracker.emitter.setanonymoustracking.md) | (anonymous: boolean) =&gt; void | Sets the server anonymization flag. |
|  [setBufferSize](./node-tracker.emitter.setbuffersize.md) | (bufferSize: number) =&gt; void | Updates the buffer size of the emitter. |
|  [setCollectorUrl](./node-tracker.emitter.setcollectorurl.md) | (url: string) =&gt; void | Updates the collector URL to which events will be sent. |

