Show specific text when you hover over a link
moduleDispatcher
- method of event management.
moduleDispatcher
switches to the selected method chatTrack
and transmits necessary data to that.
For example:
moduleDispatcher('chatTrack',{
action: 'click',
args: {
id: '1',
url: 'nano.com',
text: 'helloWorld'
}
})
ChatTrackData {
action: string
args: {
id: string
url: string
text: string
}
}
data = {
action: 'click',
args: {
id: '1',
url: 'nano.com',
text: 'helloWorld'
}
}
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 |