Changed polling strategy.
This commit is contained in:
@@ -16,7 +16,7 @@ import javax.ws.rs.core.Response;
|
|||||||
|
|
||||||
public abstract class AbstractResource {
|
public abstract class AbstractResource {
|
||||||
protected final boolean _test = System.getProperty("test") != null;
|
protected final boolean _test = System.getProperty("test") != null;
|
||||||
protected static long _longPollingLength = 5000;
|
protected static long _longPollingLength = 10000;
|
||||||
protected static long _longPollingInterval = 200;
|
protected static long _longPollingInterval = 200;
|
||||||
|
|
||||||
@Context
|
@Context
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ var ChatBoxUI = Class.extend({
|
|||||||
maxMessageCount:500,
|
maxMessageCount:500,
|
||||||
talkBoxHeight:25,
|
talkBoxHeight:25,
|
||||||
|
|
||||||
chatUpdateInterval:1000,
|
chatUpdateInterval:100,
|
||||||
|
|
||||||
playerListener:null,
|
playerListener:null,
|
||||||
hiddenClasses:null,
|
hiddenClasses:null,
|
||||||
|
|||||||
@@ -916,7 +916,7 @@ var GameAnimations = Class.extend({
|
|||||||
setTimeout(
|
setTimeout(
|
||||||
function () {
|
function () {
|
||||||
that.game.updateGameState();
|
that.game.updateGameState();
|
||||||
}, 1000);
|
}, 100);
|
||||||
|
|
||||||
if (!animate)
|
if (!animate)
|
||||||
that.game.layoutUI(false);
|
that.game.layoutUI(false);
|
||||||
|
|||||||
@@ -658,7 +658,7 @@ var GempLotrHallUI = Class.extend({
|
|||||||
if (!skipReload) {
|
if (!skipReload) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
that.updateHall();
|
that.updateHall();
|
||||||
}, 3000);
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user