Event manager

Overlay events for integrators.

The SDK provides an event management interface via the embet.eventManager(callback) method. This allows integrators to subscribe to overlay events and respond to user interactions in real time.

By registering a callback function, developers can listen for specific events, such as bet selections and execute custom logic as needed. This enables seamless integration with your own tracking systems, user flows, or bet placement mechanisms.

Register embet.eventManager(callback) before or after init. Each callback receives an object with eventName and optional fields.

Events

Event nameDescription
outcome_selectedUser selected an outcome in the odds widget. Payload includes marketId, outcomeId, and optional specifiers.
panel_position_changedOverlay chrome moved left or right. Payload includes position.
panel_view_changedActive overlay view changed (live odds, live stats, live quiz, leaderboards, settings). Payload includes view and container.
widget_additional_betsUser expanded or collapsed extra markets via view more / view less. status is expanded or collapsed; payload includes marketId and optional specifiers.
widget_resizedA widget was scaled via embet.resizeConfig (host resize observer). Payload includes container dimensions and scale.

Platforms