0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-11-05 07:03:24 +01:00

check specific alive api call

This commit is contained in:
peteruithoven 2013-10-03 18:06:05 +02:00
parent f4abaa99e7
commit 5cd5778331

View File

@ -1,7 +1,7 @@
var retrieveListInterval = 5000;
var retrieveListDelay; // retry setTimout instance
var boxTimeoutTime = 300;
var boxTimeoutTime = 500;
var numBoxesChecking = 0; // count how many boxes we are checking
var numBoxesFound = 0; // count how many boxes responded
@ -74,8 +74,8 @@ function updateList(boxes) {
function checkBox(box) {
numBoxesChecking++;
$.ajax({
url: "http://"+box.localip+"/d3dapi/network/status",
dataType: 'json',
url: "http://"+box.localip+"/d3dapi/network/alive",
dataType: "json",
timeout: boxTimeoutTime,
success: function(response){
if(response.status == "success") {