We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I implemented this part of code to connect to a Websocket via SOCKS proxy but the websocket returned is always null. Is it supported?
ProxyServer.Builder socksProxy = Dsl.proxyServer(socksAddress); socksProxy.setProxyType(ProxyType.SOCKS_V5);
Builder config = Dsl.config(); DefaultAsyncHttpClientConfig.Builder as = config.setProxyServer(socksProxy.build()); AsyncHttpClient ahClient = Dsl.asyncHttpClient(as); WebSocketUpgradeHandler.Builder wsbuilder = new WebSocketUpgradeHandler.Builder(); WebSocketListener mywebSocketListener = new MyWebSocketListener(); try { WebSocketUpgradeHandler handler = wsbuilder.addWebSocketListener(mywebSocketListener).build(); websocket = ahClient.prepareGet(SODConfiguration.getInstance().getWSUrl()).execute(handler).get(1, TimeUnit.SECONDS); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I implemented this part of code to connect to a Websocket via SOCKS proxy but the websocket returned is always null. Is it supported?
ProxyServer.Builder socksProxy = Dsl.proxyServer(socksAddress);
socksProxy.setProxyType(ProxyType.SOCKS_V5);
The text was updated successfully, but these errors were encountered: