public virtual RequestHandle bindSession(BindSessionRequest request, StreamListener reqListener, long tcpConnectTimeout, long tcpReadTimeout, ListenableFuture requestFuture)
        {
            RequestHandle handle = transport.sendRequest(protocol, request, reqListener, options.HttpExtraHeadersOnSessionCreationOnly ? null : options.HttpExtraHeaders, options.Proxy, tcpConnectTimeout, tcpReadTimeout);

            requestFuture.fulfill();
            return(handle);
        }
 private void sendBindRequest(LightstreamerRequest request, RequestListener reqListener, ListenableFuture bindFuture)
 {
     wsTransport.sendRequest(protocol, request, new ListenerWrapper(this, reqListener), null, null, 0, 0);
     bindFuture.fulfill();
 }