You are here

public static function Nodejs::sendContentToken in Node.js integration 7

Same name and namespace in other branches
  1. 6 nodejs.module \Nodejs::sendContentToken()
1 call to Nodejs::sendContentToken()
nodejs_send_content_channel_token in ./nodejs.module
Send a content channel token to Node.js.

File

./nodejs.module, line 911

Class

Nodejs

Code

public static function sendContentToken($message) {
  $options = array(
    'method' => 'POST',
    'data' => drupal_json_encode($message),
  );
  return self::httpRequest('nodejs/content/token', $options);
}