End Embedded Chat Event

Will try to make this short :slight_smile:

End Embedded Chat
Is there an event you can catch when clicking the top right "End Chat" button. As it stands the Chat window says "[NAME] Left Conversation" and then just sits there. In the console it says "[connect] realtime blur"

I have a button which hides and activates the chat which is a 1 to 1 help chat for an ecommerce site. When you click "End Chat", I expect to use an event to reset the chatContainer, any settings and activate the button again.

Thank you in advance for any advice and support.

There isn't currently an event you can get for when the chat ends. There is some related discussion in this post for a little more information: https://developer.mypurecloud.com/forum/t/startembedchat-launching-new-frames-in-container/1183