@Override
public void completed(final HttpClientConnection connection) {
final WebSocketClientHandshake handshake = WebSocketClientHandshake.create(WebSocketVersion.V13, uri);
HttpClientRequest request = connection.createRequest(Methods.GET, uri);
handshake.setupRequest(request);
request.writeRequest(new HttpClientCallback<HttpClientResponse>() {
@Override
public void completed(final HttpClientResponse result) {
try {
handshake.verifyResponse(uri, result, connection, callback);
} catch (IOException e) {