title: How are timeouts set for AndroidAsync websockets?
body: <p>I am trying to change the default AndroidAsync websocket initial connection timeout of 30 seconds. This is the working version with the default timeout:</p>
  
  <pre><code>AsyncHttpClient.getDefaultInstance().websocket(connectionURI.toString(), null, this);
  </code></pre>
  
  <p>I would like to change the timeout. This is what I expected to work:</p>
  
  <pre><code>int timeout_ms = 20000;
  AsyncHttpGet request = new AsyncHttpGet(connectionURI.toString());
  request.setTimeout(timeout_ms);
  AsyncHttpClient.getDefaultInstance().websocket(request, null, this);
  </code></pre>
  
  <p>This results in an <code>java.lang.IllegalArgumentException: invalid uri=ws://exampleserver.com:80/test middlewares=[com.koushikdutta.async.http.HttpTransportMiddleware@1e2543c8, com.koushikdutta.async.http.spdy.SpdyMiddleware@2534fc61, com.koushikdutta.async.http.AsyncSocketMiddleware@107b3386]</code></p>
  
  <p>Note that exactly the same connectionURI string is successful in the first case, but not the second. </p>
  
  <p>Is there a way to change the timeout of the AndroidAsync websocket?</p>