Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in the manual
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.
Drupal and node.js integration (DrupalCamp Twin Cities)
Transcript of Drupal and node.js integration (DrupalCamp Twin Cities)
engine + system libraries events timers file system network TCP/UDP HTTP/S extensions MySQL socket.io express Joe Turgeon
@arithmetric DrupalCamp Twin Cities
control panel application
group/social notifications node.js integration module for Drupal Created in 2011 by Justin Randell
BOFs and code sprints at DrupalCon Chicago
Beta 1 released April 28
Drupal 6 port started recently nodejs is an API module that allows other Drupal modules to use a node.js server for pushing messages to users It includes a few extra modules that demonstrate its basic functionality: Provides an "action" to send messages via the node.js service for triggers
Basic functionality for subscribing to a node and receiving update notifications via the node.js service
UI module for growl-like notifications DEMO Technical details about node.js In node.js, system calls and I/O are asynchronous Instead of waiting, node.js moves on to the next event A single instance of a node.js program can handle many connections Data is easily shared and accessible across connections
(so there is less need for an external data store) nodejs Module Architecture The node.js service is limited to receiving messages from Drupal and pushing to appropriate clients The nodejs module has the concept of "channels" that users can be added to or removed from Other Drupal modules can create a channel, specify which users should be part of the channel, and send messages to the channel This design is meant to allow a simple integration path for other modules How can developers extend the nodejs module? Hooks hook_nodejs_auth_check()
hook_nodejs_user_channels() Helper functions Server extensions nodejs_add_user_to_channel()
nodejs_send_role_message() Extend the node.js service to perform processing on the messages to/from the Drupal site and to/from clients. DEMO What are future directions for development? Enhance existing functionality with real-time notifications delivered by a node service
Custom applications where Drupal uses a node service as a hub for user interaction How can you get involved? Test it and try to apply it
Report bugs and help fix outstanding issues
Get involved in the Drupal group
Help think about future goals For more information nodejs Drupal module:
node.js Drupal group:
http://bit.ly/dctc-nodejs http://bit.ly/dctc-nodejs-tictactoe http://bit.ly/dctc-nodejs-demo