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