Chat events
moduleDispatcher
- method of event management.
moduleDispatcher
switches to the selected method chatEvent
and transmits necessary data to that.
For example:
moduleDispatcher('chatEvent',{eventName: 'ready'})
ChatEventData {
eventName:
DialogLanguageEventsNames
context?: RandomContext
}
data = {
eventName: 'ready',
}
event | |
---|---|
'ready' | chat is ready |
'inactive' | user is active |
'rate' | rate message |
'notification' | send notification |
'context' | change chat context |
'click' | mouse click |
'mouse' | move mouse |
'operatorStatus' | operator status |
'chatState' | chat state |
'geolocationTimeout' | geolocation time out |
'geolocationDenied' | geolocation denied |