You are here

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

Same name and namespace in other branches
  1. 7 nodejs.module \Nodejs::sendContentTokenMessage()
1 call to Nodejs::sendContentTokenMessage()
nodejs_send_content_channel_message in ./nodejs.module
Send a content change message to a content channel.

File

./nodejs.module, line 638

Class

Nodejs

Code

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