code: function(client, window, reconnectInterval) { 
  		this._client = client;        	
  		this._window = window;
  		this._reconnectInterval = reconnectInterval*1000;
  		
  		var doTimeout = function (reconnector) {
  			return function () {
  				return doReconnect.apply(reconnector);
  			};
  		};
  		
  		/** @ignore */
  		var doReconnect = function() { 
  			if (this._client.connected) {
  				this._client._trace("Reconnector.doReconnect", "ALREADY CONNECTED");
  				this._window.clearTimeout(this.reconnectorTimer);
  			} else {
  				this._client._trace("Reconnector.doReconnect", "reconnecting");
  				if (this._client.connectOptions.uris) {
  					this._client.hostIndex = 0;
  					this._client._doConnect(this._client.connectOptions.uris[0]);  
  				} else {
  					this._client._doConnect(this._client.uri);
  				}
  				this.reconnectorTimer = this._window.setTimeout(doTimeout(this), this._reconnectInterval);
  			}
  		}
  		
  		this.reset = function() {
  			this._window.clearTimeout(this.reconnectorTimer);
  			this.reconnectorTimer = this._window.setTimeout(doTimeout(this), this._reconnectInterval);
  		}
  
  		this.cancel = function() {
  			this._window.clearTimeout(this.reconnectorTimer);
  		}
  	 }
docs: Reconnect timer
  @ignore