plugins/realtime/realtime.js
function handleErrorEvent(event) {
        var data = getData(event);
        if (data) {
            viewerAPI.fire('realtimeerror', { error: data.message });
            if (data.close) {
                realtime.destroy();
            }
        }
    }
function handleErrorEvent(event) {
        var data = getData(event);
        if (data) {
            viewerAPI.fire('realtimeerror', { error: data.message });
            if (data.close) {
                realtime.destroy();
            }
        }
    }
function handleErrorEvent ( event ) { var data = getData ( event ) ; if ( data ) { viewerAPI . fire ( 'realtimeerror' , { error : data . message } ) ; if ( data . close ) { realtime . destroy ( ) ; } } }
Handle eventSource errors
@param   {Event} event The event object
@returns {void}
@private
Handle eventSource errors