publish

document.publish();
document.publish();
<?php

use \Kuzzle\Document;

// ...

/**
 * @var $document Document
 */

try {
  $document->publish();
} catch (ErrorException $e) {

}

Publishes the content of this document as a real-time message.


publish([options])

ArgumentsTypeDescription
optionsJSON ObjectOptional parameters

Options

OptionTypeDescriptionDefault
volatileJSON ObjectAdditional information passed to notifications to other usersnull
queuablebooleanMark this request as (not) queuabletrue

Return value

Returns this Document object to allow chaining.