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.
- Install and enable the nodejs integration module along with the appropriate node server configuration.
- Enable the swapit demonstration module.
- Make sure your node server is running.
- Go to mysite.com/swap and check it out! Use a couple of sessions to see the node-ey goodness.