return Action.CANCELLED;
}
protected Action info(AtmosphereResource r) {
final AtmosphereResponse response = r.getResponse();
final AtmosphereRequest request = r.getRequest();
response.headers().put("Content-Type", "application/json; charset=UTF-8");
ObjectNode json = new ObjectNode(JsonNodeFactory.instance);
json.put("websocket", supportWebSocket);
json.putArray("origins").add("*:*");
json.put("entropy", new Random().nextInt());
r.write(JsonCodec.encode(json));
if (baseURL.get().isEmpty()) {
baseURL.set(request.getRequestURI().substring(0, request.getRequestURI().indexOf("/info")));
}
return Action.CANCELLED;
}