Map<String, Object> options = new HashMap<>();
options.put(ClientTransport.MAX_NETWORK_DELAY_OPTION, timeout);
HttpClientTransport transport = new LongPollingTransport(options, httpClient);
final CountDownLatch latch = new CountDownLatch(1);
transport.setURL(serverURL);
transport.setCookieStore(new HttpCookieStore());
transport.init();
transport.send(new TransportListener.Empty()
{
@Override