Event Listeners
These events can be accessed from the addEventListener method for the window.
This event is dispatched when the Salesforce JavaScript API for Messaging is ready to use. At this point, you can make calls such as setIdentityToken
and setHiddenPrechatFields
.
This event is dispatched when the user verification token has expired. After this call, user data is cleared. To avoid this scenario, call setIdentityToken
before this event occurs.