You are here

function nodejs_enqueue_message in Node.js integration 7

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

Enqueue a message for sending at the end of the request.

Parameters

StdClass $message:

5 calls to nodejs_enqueue_message()
nodejs_actions_enqueue_message in nodejs_actions/nodejs_actions.module
Helper function for enqueueing 'nodejs_notify' channel messages.
nodejs_broadcast_message in ./nodejs.module
Broadcast a message to all clients.
nodejs_send_channel_message in ./nodejs.module
Send a message to all users subscribed to a given channel.
nodejs_send_user_message in ./nodejs.module
Send a message to given user.
nodejs_subscribe_send_notification in nodejs_subscribe/nodejs_subscribe.module
Send a message that the given node was updated.

File

./nodejs.module, line 492

Code

function nodejs_enqueue_message(StdClass $message) {
  $message->broadcast = isset($message->broadcast) ? $message->broadcast : FALSE;
  Nodejs::enqueueMessage($message);
}