Created
June 11, 2011 18:06
-
-
Save texodus/1020802 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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