For a more detailed description on this demonstration module, check out Talking to Drupal with NodeJS. The example code in that post is taken directly from this module.
- You will of course need the nodejs module installed configured and enabled.
- As an added bonus enable nodejs_notify (included with the nodejs module) to allow client side notifications upon success.
clientsCanWriteToClients: true extensions: ['../node_to_drupal/node_to_drupal.server.extension.js']