Constructor of the EventPoller object.
The provider to use for polling.
The filter to use for the events.
The interval in milliseconds to poll for events.
Private
Readonly
eventsThe filter to use for the events.
Private
intervalPrivate
lastPrivate
Readonly
pollThe interval in milliseconds to poll for events.
Private
Readonly
providerThe provider to use for polling.
Static
prefixedPrivate
pollPrivate
startPrivate
stopStatic
startStarts polling for events and returns the stopPolling function.
The provider to use for polling.
The filter to use for the events.
Optional
onData: ((data) => void)The callback function to call when new events are found.
Optional
onError: ((err) => void)The callback function to call when an error occurs.
The interval in milliseconds to poll for events. Default is 1000Ms.
An object containing the stopPolling function.
The EventPoller class provides a convenient way to poll events from the Massa network.