You are here

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

Same name and namespace in other branches
  1. 7 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 648

Class

Nodejs

Code

public static function sendContentToken($message) {
  self::initConfig();
  $request_method = 'POST';
  $request_retry = 3;
  $data = json_encode($message);
  return drupal_http_request(self::$baseUrl . 'nodejs/content/token', self::$headers, $request_method, $data, $request_retry);
}