Add lbry.getVersionInfo() and lbry.stop()

This commit is contained in:
Alex Liebowitz 2016-04-20 04:46:36 -04:00
parent 590da0e674
commit 19933c53e5

View file

@ -95,6 +95,10 @@ lbry.search = function(query, callback)
lbry.call("search_nametrie", { "search": query }, callback);
}
lbry.getVersionInfo = function(callback) {
lbry.call('version', {}, callback);
};
lbry.checkNewVersionAvailable = function(callback) {
lbry.call('version', {}, function() {
// If the "version" method is available, we have a daemon new enough to do version checking
@ -132,3 +136,7 @@ lbry.imagePath = function(file)
{
return lbry.rootPath + '/img/' + file;
}
lbry.stop = function(callback) {
lbry.call('stop', {}, callback);
};