}
return new WebSocket() {
private WebSocketProcessor webSocketProcessor;
public void onConnect(WebSocket.Outbound outbound) {
webSocketProcessor = new WebSocketProcessor(AtmosphereServlet.this, new JettyWebSocketSupport(outbound));
try {
webSocketProcessor.connect(request);
} catch (IOException e) {
logger.log(Level.WARNING, "", e);
}