 		 */
 		protected var _incompleteRawXML:String = "";
 
-		private var _streamType:uint = 1;
+		private var _streamType:uint = 0;
 		private var presenceQueue:Array = [];
 		private var presenceQueueTimer:Timer;
 

		 * Stream type lets user set opening/closing tag.
		 * <code><stream:stream /></code>
		 */
		public static const STREAM_TYPE_STANDAND_TERMINATED:uint = 1;
		/**
		 * Stream type lets user set opening/closing tag.
		 * <code><flash:stream></code>

		 * Connects to the server. Use one of the STREAM_TYPE_.. constants.
		 * Possible options are:
		 * <ul>
		 * <li>standard (default)</li>
		 * <li>standard terminated</li>
		 * <li>flash</li>
		 * <li>flash terminated</li>
		 * </ul>
		 * Some servers, like Jabber, Inc.'s XCP and Jabberd 1.4 expect &lt;flash:stream&gt; from
		 * a Flash client instead of the standard &lt;stream:stream&gt;.
		 *
		 * @param	streamType Any of the STREAM_TYPE_.. constants.
		 *
		 * @return A boolean indicating whether the server was found.
		 */
		public function connect( streamType:uint = 0 ):Boolean
		{
			createSocket();
			_streamType = streamType;
