Skip to content

HTTPS clone URL

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
README.md moar tweaks n stuff
swapit_demo.client.js adding appropriate conditional
swapit_demo.info catching function calls up with namespace, and few info tweaks
swapit_demo.module adding a check plain to the ajax form update

README.md

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.

Setup

  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 mysite.com/swap and check it out! Use a couple of sessions to see the node-ey goodness.
Something went wrong with that request. Please try again.