Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple demonstration of using nodeJS integration module in custom Drupal modules.
branch: master
Failed to load latest commit information.
LICENSE.txt moar tweaks n stuff
swapit_demo.client.js adding appropriate conditional catching function calls up with namespace, and few info tweaks
swapit_demo.module adding a check plain to the ajax form update

SwapIt Demonstration

This module is a simple demonstration of how to build a custom module utilizing the nodeJS integration module. For more information on how this module works check out Module Development with Drupal and NodeJS. The example code in the post is taken directly from this module.


  1. Install and enable the nodejs integration module along with the appropriate node server configuration.
  2. Enable the swapit demonstration module.
  3. Make sure your node server is running.
  4. Go to and check it out! Use a couple of sessions to see the node-ey goodness.
Something went wrong with that request. Please try again.