Active
Project:
Node.js integration
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2013 at 06:09 UTC
Updated:
13 Jul 2013 at 03:16 UTC
Jump to comment: Most recent
Comments
Comment #1
julien commentedYou can write a drupal module which include an extension for the nodejs integration module. and in this one, use node-mysql module for node and do your query on those events.
Comment #2
rho_ commentedCheck out
hook_nodejs_message_callback()for the Drupal side, andconfig.sendMessageToBackend()in your server extension. It gives you a lot of flexibility in getting Node to tell Drupal what to do. Ideally you want Drupal to be doing all work on the Drupal database, and just have Node inform Drupal what changes need to be made.I have a blog post on this very thing if you are interested. Apologies for soliciting a blog, but it directly answers this question.
Comment #3
Anonymous (not verified) commentedrho_ - no need to apologise :-)
this is not major.