...
Additional data to be sent with messages.
Methods
...
init(config)
...
...
Initializes the chat UI with the given configuration.
show
...
()
Displays the chat UI.
hide
...
()
Hides the chat UI.
add
...
(info)
Adds a message to the chat UI.
clear
...
()
Clears the chat messages.
setTheme
...
(newTheme)
Sets the theme of the chat UI.
setBrandColor
...
(newBrandColor)
Sets the brand color of the chat UI.
send
...
()
Sends the message from the prompt box.
poll
...
()
Polls the server for responses.
showLoader
...
(loaderMessage)
Displays the loading animation.
hideLoader
...
()
Hides the loading animation.
isLoading
...
()
Checks if the loader is currently displayed.
destroy
...
()
Destroys the chat UI and cleans up resources.