lbry-desktop/js/lighthouse.js
2016-08-18 03:14:38 -04:00

14 lines
492 B
JavaScript

lbry.lighthouse = {
servers: [
'http://lighthouse1.lbry.io:50005',
'http://lighthouse2.lbry.io:50005',
'http://lighthouse3.lbry.io:50005',
],
path: '/',
call: function(method, params, callback, errorCallback, connectFailedCallback) {
lbry.jsonrpc_call(this.server + this.path, method, params, callback, errorCallback, connectFailedCallback);
},
};
lbry.lighthouse.server = lbry.lighthouse.servers[Math.round(Math.random() * (lbry.lighthouse.servers.length - 1))];