Skip to content

Events

Coming Soon

The events API is planned for a future release. Currently, the widget does not expose event listeners.

Planned Events

The following events are planned for future implementation:

EventDescription
readyWidget is initialized and ready
openWidget window opened
closeWidget window closed
message:sentUser sent a message
message:receivedNew message received

Current Workaround

For now, you can observe the widget state by checking the DOM:

javascript
// Check if widget is open
const isOpen = document.querySelector('#supprt-widget-host')
  ?.shadowRoot?.querySelector('.supprt-window') !== null