node-action-listener
v1.0.4
Published
ActionListener pattern implementation in NodeJS
Downloads
2
Readme
ActionListener pattern implementation in NodeJS
Implements this behavior :
ActionListenerPattern = require('node-action-listener');
var lib = new ActionListenerPattern();
lib.addListener(function(event) {
console.log("new event received");
});
lib.fireEvent({'id':1, 'message':"this is it, fired!"});