public void sendUpgrade() throws IOException {
((UpgradableHttpServletResponse) response).sendUpgrade();
}
};
OioWebSocket oioWebSocket = WebSocketConnectionManager.establish(protocolName, requestBridge, responseBridge,
new ClosingStrategy() {
public void doClose() throws IOException {
onSocketClosed((WebSocket) request.getAttribute(SESSION_WEBSOCKET_HANDLE));
event.close();
}