     // 
     //--------------------------------------------------------------------------
 
-	/**
-	 *  Constructs an instance of a generic Channel that connects to the
-	 *  specified endpoint URI.
+    /**
+     *  Constructs an instance of a generic Channel that connects to the
+     *  specified endpoint URI.
      *
-	 *  <b>Note</b>: The Channel type should not be constructed directly. Instead
-	 *  create instances of protocol specific subclasses such as RTMPChannel or
-	 *  AMFChannel.
+     *  <b>Note</b>: The Channel type should not be constructed directly. Instead
+     *  create instances of protocol specific subclasses such as RTMPChannel or
+     *  AMFChannel.
      *
-	 *  @param id The id of this channel.
-	 * 
-	 *  @param uri The endpoint URI for this channel.
-	 */
-	public function Channel(id:String = null, uri:String = null)
-	{
-		super();
-
-		_log = Log.getLogger("mx.messaging.Channel");
-		_failoverIndex = -1;
-	    this.id = id;
-		_primaryURI = uri;
-		this.uri = uri; // Current URI
-	}
+     *  @param id The id of this channel.
+     * 
+     *  @param uri The endpoint URI for this channel.
+     */
+    public function Channel(id:String = null, uri:String = null)
+    {
+        super();
+
+        _log = Log.getLogger("mx.messaging.Channel");
+        _failoverIndex = -1;
+        this.id = id;
+        _primaryURI = uri;
+        this.uri = uri; // Current URI
+    }
 
     /**
      * @private

     */   
    public function get recordMessageSizes():Boolean
    {
    	return _recordMessageSizes;
    }         
	
	//----------------------------------
	//  reconnecting
	//----------------------------------

	/**
	 *  @private
	 */
	private var _reconnecting:Boolean = false;

    [Bindable(event="propertyChange")]
    /**

    private var _connected:Boolean = false;

    [Bindable(event="propertyChange")]
    /**
     *  Indicates whether this channel has established a connection to the 
     *  remote destination.
     */
    public function get connected():Boolean
    {
        return _connected;
    }
    
    /**
     *  @private
     */
    protected function setConnected(value:Boolean):void
    {
        if (_connected != value)
        {
            if (_connected)
               _previouslyConnected = true;
            
            var event:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(this, "connected", _connected, value)
            _connected = value;
            dispatchEvent(event);
            if (!value)
                setAuthenticated(false);
        }
    }
    
    //----------------------------------
    //  connectTimeout
    //----------------------------------
    
    /**
     *  @private
     */
    private var _connectTimeout:int = -1;   
    
    /**
     *  Provides access to the connect timeout in seconds for the channel. 
     *  A value of 0 or below indicates that a connect attempt will never 
     *  be timed out on the client.
