 import mx.messaging.messages.AbstractMessage;
 import mx.messaging.messages.AsyncMessage;
 import mx.messaging.messages.ErrorMessage;
-import mx.messaging.messages.IMessage;   
+import mx.messaging.messages.IMessage;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
-    
-use namespace mx_internal;    
-    
+
+use namespace mx_internal;
+
 [ResourceBundle("messaging")]
-    
+
 /**
  *  The StreamingHTTPChannel class provides support for messaging and
  *  offers a different push model than the base HTTPChannel. Rather than
  *  polling for data from the server, the streaming channel opens an internal
  *  HTTP connection to the server that is held open to allow the server to
  *  stream data down to the client with no poll overhead.
- * 
+ *
  *  <p>
  *  Messages sent by this channel to the server are sent using a URLLoader
  *  which uses an HTTP connection internally for the duration of the operation.
  *  Once the message is sent and an acknowledgement or fault is returned the HTTP connection
- *  used by URLLoader is released by the channel. These client-to-server messages are 
- *  not sent over the streaming HTTP connection that the channel holds open to receive 
+ *  used by URLLoader is released by the channel. These client-to-server messages are
+ *  not sent over the streaming HTTP connection that the channel holds open to receive
  *  server pushed data.
  *  </p>
- *  
+ *
  *  <p>
  *  Although this class extends the base HTTPChannel to inherit the regular HTTP
  *  handling, it does not support polling.
  *  </p>
- */    
+ */
 public class StreamingHTTPChannel extends HTTPChannel
-{    
+{
     //--------------------------------------------------------------------------
     //
     // Constructor
-    // 
-    //--------------------------------------------------------------------------
-    
+    //
+    //--------------------------------------------------------------------------
+
     /**
      *  Creates an new StreamingHTTPChannel instance.
      *
-	 *  @param id The id of this Channel.
-	 *  
-	 *  @param uri The uri for this Channel.
+     *  @param id The id of this Channel.
+     *
+     *  @param uri The uri for this Channel.
      */
     public function StreamingHTTPChannel(id:String = null, uri:String = null)
     {


package mx.messaging.channels
{
    
import flash.events.Event;
import flash.events.HTTPStatusEvent;
import flash.events.IOErrorEvent;

        {
            streamingConnectionHandler.closeStreamingConnection();
            disconnectSuccess(true /* rejected */);
        }
    }
}

}
