You are here

function nodejs_send_message in Node.js integration 7

Same name and namespace in other branches
  1. 8 nodejs.module \nodejs_send_message()
  2. 6 nodejs.module \nodejs_send_message()

Send a message immediately.

Parameters

StdClass $message:

1 call to nodejs_send_message()
nodejs_ajax_render in nodejs_ajax/nodejs_ajax.module
Send some commands to the user asynchronously.

File

./nodejs.module, line 502

Code

function nodejs_send_message(StdClass $message) {
  $message->broadcast = isset($message->broadcast) ? $message->broadcast : FALSE;
  return Nodejs::sendMessage($message);
}