You are here

public function Nodejs::sendContentTokenMessage in Node.js integration 8

File

src/Nodejs.php, line 120

Class

Nodejs

Namespace

Drupal\nodejs

Code

public function sendContentTokenMessage($message) {
  $this->moduleHandler
    ->alter('nodejs_content_channel_message', $message);
  $options = [
    'method' => 'POST',
    'body' => Json::encode($message),
  ];
  return $this
    ->httpRequest('nodejs/content/token/message', $options);
}