docs: function handleErrorEvent(event) {
          var data = getData(event);
          if (data) {
              viewerAPI.fire('realtimeerror', { error: data.message });
              if (data.close) {
                  realtime.destroy();
              }
          }
      }