private Iterable<RequestHandler> requestHandlers;
- private boolean atmosphereAvailable = checkAtmosphereSupport();
+ private Boolean atmosphereAvailable = null;
/**
* Keeps track of whether a warning about missing push support has already
* is not available.
*/
public boolean ensurePushAvailable() {
- if (atmosphereAvailable) {
+ if (isAtmosphereAvailable()) {
return true;
} else {
if (!pushWarningEmitted) {
}
}
- private static boolean checkAtmosphereSupport() {
+ private boolean checkAtmosphereSupport() {
String rawVersion = AtmospherePushConnection.getAtmosphereVersion();
if (rawVersion == null) {
return false;
* @return true if Atmosphere is available, false otherwise
*/
protected boolean isAtmosphereAvailable() {
+ if (atmosphereAvailable == null) {
+ atmosphereAvailable = checkAtmosphereSupport();
+ }
return atmosphereAvailable;
}
// Chrome version does not necessarily match the desired version
// because of auto updates...
browserIdentifier = getExpectedUserAgentString(
- getDesiredCapabilities()) + "86";
+ getDesiredCapabilities()) + "87";
} else {
browserIdentifier = getExpectedUserAgentString(desiredCapabilities)
+ desiredCapabilities.getVersion();