}
@Override
protected void onOpen(WsOutbound outbound) {
logger.trace("WebSocket.onOpen.");
webSocket = new TomcatWebSocket(outbound, framework.getAtmosphereConfig());
try {
webSocketProcessor.open(webSocket, request, AtmosphereResponse.newInstance(framework.getAtmosphereConfig(), request, webSocket));
} catch (Exception e) {
logger.warn("failed to connect to web socket", e);
}