About Events methods
From Genesys Documentation
Events methods allow developers to build functionality that reacts to state changes in the SDK.
ImportantThis article only applies to customers using web chat. If you are a Genesys Cloud CX customer, we encourage you to use the new web messaging feature to replace web chat.