Event API: Listening to Bus Events with api.listen
Overview
api.listen(event: BusEvent, callback: (...args) => void)Example Usage
nostojs(api => {
api.listen('taggingsent', (response) => {
// 'response' from recommendation request
// consume response if necessary
console.log('Tagging data was sent to Nosto');
});
});Supported BusEvent Types
BusEvent TypesLifecycle Events
Event Name
Description
Popup Events
Event Name
Description
Tagging Events
Event Name
Description
Unregistering listener
Example usage
Last updated
Was this helpful?