plugins/realtime/realtime.js
function handleFailedEvent(event) {
        var data = getData(event);
        viewerAPI.fire('realtimeerror', { error: data });
        realtime.destroy();
    }
function handleFailedEvent(event) {
        var data = getData(event);
        viewerAPI.fire('realtimeerror', { error: data });
        realtime.destroy();
    }
function handleFailedEvent ( event ) { var data = getData ( event ) ; viewerAPI . fire ( 'realtimeerror' , { error : data } ) ; realtime . destroy ( ) ; }
Handle error and failed eventSource events
@param   {Event} event The event object
@returns {void}
@private
Handle error and failed eventSource events