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