Hi I have an active integration with PureCloud Guest Chat API. Sometimes the websocket is closed unexpectedly then this ends my comunication with the agent.
So, how I can get the reason of the close event?
Currently, I can catch the close data and this one only return a number.
I searched the documentation (https://developer.mypurecloud.com/api/webchat/guestchat.html) and I couldn’t find a reference to these numbers (I think are error codes)
I need to know what is the reason for the close event (purecloud error, network error, etc) because now I only have a 'close' event without any additional info
Please tell me how I can get the real close reason to handle it with more precision