enum EventStrategy

How the bot will receive and emit events.


Polling: string

By default, the bot will poll the notifications endpoint every pollingInterval seconds. This is less resource-intensive than the firehose strategy, but it may take up to pollingInterval seconds for the bot to receive new events. This strategy will not emit the firehose event.

Firehose: string

The bot will open a websocket connection to the relay and receive events in real-time. This will consume more bandwidth and CPU than the polling strategy, but the bot will receive events as soon as they are emitted.