You are here

function nodejs_send_message in Node.js integration 8

Same name and namespace in other branches
  1. 6 nodejs.module \nodejs_send_message()
  2. 7 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 443

Code

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