eventFilter.addContentEncoding(new GZipContentEncoding(512, 512,
new ClientEncodingFilter()));
secure.add(eventFilter);
final AsyncHttpClientFilter clientFilter = new AsyncHttpClientFilter(this, clientConfig);
secure.add(clientFilter);
secure.add(new WebSocketClientFilter());
clientTransport.getAsyncQueueIO().getWriter().setMaxPendingBytesPerConnection(AUTO_SIZE);