1.0.4 • Published 8 years ago
node-action-listener v1.0.4
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!"});