title: websocket through proxy timing out
body: <p>I have the following code </p>
  
  <pre><code>ClientManager client = ClientManager.createClient();
  client.getProperties().put(ClientManager.WLS_PROXY_HOST,PROXY_HOST);
  client.getProperties().put(ClientManager.WLS_PROXY_PORT,""+PROXY_PORT);
  client.getProperties().put(ClientManager.WLS_PROXY_PASSWORD,authPassword);
  client.getProperties().put(ClientManager.WLS_PROXY_USERNAME,authUser);
  
  WebSocketContainer container = ContainerProvider.getWebSocketContainer();
  container.connectToServer(new MyEndpoint() , URI.create("wss://client.pushover.net/push"));
  } catch (Exception e) {
  System.out.println(e.GetMessage());
  }
  </code></pre>
  
  <p>It gets to the connectToServer fine, but then waits for a while and then gives a Connection Timed out Exception.</p>
  
  <p>I had issues setting up a HttpClient connection as i had to setup the connection to the proxy correctly, this worked with </p>
  
  <pre><code>HttpHost proxy = new HttpHost(PROXY_HOST, PROXY_PORT);
  DefaultProxyRoutePlanner routePlanner = new DefaultProxyRoutePlanner(proxy);
  
  AuthCache authCache = new BasicAuthCache();
  CredentialsProvider credsProvider = new BasicCredentialsProvider();
  credsProvider.setCredentials(new AuthScope(PROXY_HOST, PROXY_PORT, AuthScope.ANY_HOST, "ntlm"), new NTCredentials(authUser, authPassword, "",PROXY_DOMAIN));
  HttpClientContext context = HttpClientContext.create();
  context.setCredentialsProvider(credsProvider);
  context.setAuthCache(authCache);
  
  httpClient = HttpClients.custom().setDefaultCredentialsProvider(credsProvider).setRoutePlanner(routePlanner).build();
  </code></pre>
  
  <p>How Do I make the WebsocketContainer work in a simiar way? or is there a better approach to doing this?</p>