node-tracker.emitterconfigurationbase.onrequestsuccess
Home > @snowplow/node-tracker > EmitterConfigurationBase > onRequestSuccess
EmitterConfigurationBase.onRequestSuccess property
A callback function to be executed whenever a request is successfully sent to the collector. In practice this means any request which returns a 2xx status code will trigger this callback.
Signature:onRequestSuccess?: (data: EventBatch, response: Response) => void;