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
/** | |
Usage: | |
var add = btapp.func('add', 'torrent'); | |
...or to provide a callback for dht activity, you might try the following: | |
var get_any_hash = btapp.func('dht', 'get_any_hash'); | |
// While the function won't be available immediately, it is abstracted away, | |
// allowing you to treat the future function as immedidately callable | |
get_any_hash(function(hash) { | |
//Just saw a hash in the dht! | |
}); |
NewerOlder