Skip to content

Instantly share code, notes, and snippets.

@texodus
Created June 11, 2011 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save texodus/1020802 to your computer and use it in GitHub Desktop.
Save texodus/1020802 to your computer and use it in GitHub Desktop.
var Hook = require('hook.io').Hook;
var myhook = new Hook({
'inputs.*': function(name, event, data){
this.emit('inputs.echo', name + event);
},
'inputs.hello': function(name, event, data){
this.emit('inputs.chello', data);
},
...
});
myhook.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment