I am using the Zendesk chat widget on my web portal. My requirement is whenever the widget goes down from server "Zendesk site" check the status and send notification to site owner.
On the research I found the $zopim.livechat.setOnStatus(callback);
method. But the disadvantage of this gives only the offline and online status.
The "Status" that is checked with the callback function
setOnStatus
will only ever refer to the actual chat status rather than a technical health check status.It's a little clunky, but if you're expecting the widget to load, but it doesn't due to the service being down, you could do a manual check after a given time, and have a reporting callback (Dummy function
your_error_callback
):