How to listen Salesforce Chat Close Event?
Salesforce Chats can be ended by Agents BOTs Visitors embedded_svc.addEventHandler() can be used for listening onChatEndedByChasitor, onChatEndedByAgent and onChatEndedByChatbot events. Sample Code: embedded_svc.addEventHandler( "onChatEndedByChasitor", function( data ) { console.log( 'Chat was ended ....