diff --git a/nodejs_notify/nodejs_notify.rules.inc b/nodejs_notify/nodejs_notify.rules.inc
index e69de29..4968516 100755
--- a/nodejs_notify/nodejs_notify.rules.inc
+++ b/nodejs_notify/nodejs_notify.rules.inc
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * Implementation of hook_rules_action_info().
+ */
+function nodejs_notify_rules_action_info() {
+  $items = array(
+    'nodejs_notify_rules_action_notify' => array(
+      'label' => t('Publish realtime notification'),
+      'group' => 'nodejs',
+      'parameter' => array(
+        'subject' => array(
+          'type' => 'text',
+          'label' => t('Subject'),
+        ),
+        'body' => array(
+          'type' => 'text',
+          'label' => t('Body'),
+        ),
+      ),
+    ),
+  );
+  return $items;
+}
+
+function nodejs_notify_rules_action_notify($subject, $body, $exclude_active_sessionid) {
+  $message = (object) array(
+    'broadcast' => TRUE,
+    'data' => (object) array(
+      'subject' => $subject,
+      'body' => $body,
+    ),
+    'callback' => 'nodejsNotify',
+  );
+  
+  nodejs_enqueue_message($message);
+}
