KustomerCore.removeListener()
Removes a callback function that was added through addListener()
First, initialize chatYou must run
KustomerCore.init()before you can execute any additional KustomerCore methods.
Examples
We're provided some examples of how you can call KustomerCore.removeListener():
const onMessageReceivedHandler = function () {
console.log('Message was received');
};
KustomerCore.addListener('onMessageReceived', onMessageReceivedHandler);
KustomerCore.removeListener('onMessageReceived', onMessageReceivedHandler);Syntax
KustomerCore.removeListener(event, function)Updated about 1 month ago