0.1.0 • Published 12 years ago

node-pubsub v0.1.0

Weekly downloads
9
License
-
Repository
-
Last release
12 years ago

node-pubsub

A port of bloody-jquery-plugins pubsub functionality. https://github.com/phiggins42/bloody-jquery-plugins

This is simple pubsub feature to be used in node.

pubsub.js

var pubsub = require('node-pubsub');

pubsub.subscribe('/mychannel', function( message ){ console.log(message); }); pubsub.publish('mychannel', { message: 'my message'}, this);

Ambiguous communication plugin. Small API surface. Publish some message to listeners.

License

Being stolen directly from the Dojo Toolkit source/bloody-jquery-plugins, this code is released under a dual AFL/BSD license identical to Dojo proper. See http://dojotoolkit.org/license for more information.