function nodejs_send_channel_message in Node.js integration 8
Same name and namespace in other branches
- 6 nodejs.module \nodejs_send_channel_message()
- 7 nodejs.module \nodejs_send_channel_message()
Send a message to all users subscribed to a given channel.
1 string reference to 'nodejs_send_channel_message'
- nodejs_drush_command in ./
nodejs.drush.inc - Implements hook_drush_command().
File
- ./
nodejs.module, line 191
Code
function nodejs_send_channel_message($channel, $subject, $body) {
$message = (object) array(
'data' => (object) array(
'subject' => $subject,
'body' => $body,
),
'channel' => $channel,
);
nodejs_enqueue_message($message);
}