if (webSocketDebuggerUrl == null) {
throw new IOException("Tab is already attached");
}
URI uri = URI.create(webSocketDebuggerUrl);
WsConnection socket;
if (USE_OLD_WEBSOCKET) {
socket = Hybi00WsConnection.connect(browserImpl.getSocketAddress(),
DEFAULT_CONNECTION_TIMEOUT_MS, uri.getPath(), "empty origin", connectionLogger);
} else {
socket = Hybi17WsConnection.connect(browserImpl.getSocketAddress(),