jellyfin-web/dashboard-ui/thirdparty/apiclient/serverdiscovery.js

19 lines
422 B
JavaScript
Raw Normal View History

2015-02-16 13:56:57 -07:00
(function (globalScope) {
globalScope.ServerDiscovery = {
2015-02-16 20:49:47 -07:00
findServers: function (timeoutMs) {
2015-02-16 13:56:57 -07:00
var deferred = DeferredBuilder.Deferred();
2015-05-06 05:56:26 -07:00
2015-02-16 13:56:57 -07:00
var servers = [];
2015-02-16 20:49:47 -07:00
// Expected server properties
// Name, Id, Address, EndpointAddress (optional)
2015-05-06 20:11:51 -07:00
deferred.resolveWith(null, [servers]);
2015-02-16 13:56:57 -07:00
return deferred.promise();
}
};
})(window);