async publish(request) {
    // assertion checks
    request.getBody();
    request.getIndexAndCollection();

    const newRequest = await global.kuzzle.validation.validate(request, false);

    newRequest.input.body._kuzzle_info = {
      author: request.getKuid(),
      createdAt: Date.now(),
    };

    await global.kuzzle.ask("core:realtime:publish", newRequest);

    return { published: true };
  }
Publish a realtime message

@param {Request} request
@returns {Promise<Object>}