Callback

This web SDK provides callback for several events that occur on the LiveChat widget

// Called when there is a case created
tapliveCallback.tapliveOnCreateCase = (caseModel, fullname, email, url) => {
    // action here
}

// Called when user send a message
tapliveCallback.tapliveOnSendMessage = (message, fullname, email, url) => {
    // action here
}

// Called when LiveChat launcher is opened
tapliveCallback.tapliveOnOpen = () => {
    // action here
}

// Called when LiveChat launcher is closed
tapliveCallback.tapliveOnClose = () => {
    // action here
}

Last updated