async notifyDocument(rooms, request, scope, action, content) {
    if (rooms.length === 0) {
      return;
    }

    const notification = DocumentNotification.fromRequest(
      request,
      scope,
      action,
      content,
    );

    global.kuzzle.emit("core:notify:document", {
      notification,
      rooms,
    });

    await this._notifyDocument(rooms, notification, {
      fromCluster: false,
    });
  }
Broadcasts a notification about a document change or a
real-time message

@param {Array} rooms - Subscribed rooms to notify
@param {Request} request - Request at the origin of the notification
@param {string} scope - 'in' or 'out'
@param {object} content - Document or message

@returns {Promise}