Question

2
Replies
117
Views
Close popover
Shanthkumar Rebello (SKUMAREB)
HealthNet

HealthNet
US
SKUMAREB Member since 2017 13 posts
HealthNet
Posted: August 7, 2018
Last activity: August 7, 2018
Closed
Solved

Pega Chat client side script to check if chat is ended

We would like to perform some action on the website once the Pega chat is ended. We tried with following script with 'chatEnded' event . This doesn't seem to be working. Any idea what might be wrong here?

fireflyChatAPI.ready(function(){
fireflyChatAPI.chatHub.on({scope: 'chatHub', type: 'chatEnded'}, function() {
alert("Chat Ended");
});
})

Pega Customer Service Conversational Channels
Moderation Team has archived post