Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 1.17 KB

chatEvent.md

File metadata and controls

42 lines (37 loc) · 1.17 KB

chatEvent

Chat events

Call of method

moduleDispatcher - method of event management.
moduleDispatcher switches to the selected method chatEvent and transmits necessary data to that.

For example:

moduleDispatcher('chatEvent',{eventName: 'ready'})

Typical data

ChatEventData {   
  eventName:   
  DialogLanguageEventsNames   
  context?: RandomContext   
}   

Example of data

data = {   
  eventName: 'ready',   
} 

options of events

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