Web SDK

Events

Listen for lifecycle events from the widget.

Browser events

whazzup:ready

The iframe is ready and queued commands can run.

whazzup:open

The visitor opened the support panel.

whazzup:close

The visitor closed the support panel.

Example

window.addEventListener('whazzup:ready', () => {
  console.log('Whazzup is ready')
})