public void Connect()
        {
            httpClient = new HttpClient();

            Negociate();
            Receive();
        }
        public SignalRReceiver(SignalRClient client)
        {
            this.client = client;

            httpClient = new HttpClient();
            callbacks = new Hashtable();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="XivelyClient"/> class.
        /// </summary>
        /// <param name="apiKey">The API key.</param>
        /// <param name="feedId">The feed id.</param>
        public XivelyClient(string apiKey, string feedId)
        {
            this.apiKey = apiKey;

            this.url = "http://api.xively.com/v2/feeds/" + feedId;

            this.httpClient = new HttpClient();
        }