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

			}
			openingStreamTag += ' to="' + domain + '" version="' + XMPPStanza.CLIENT_VERSION + '"';

			if (type == STREAM_TYPE_FLASH_TERMINATED || type == STREAM_TYPE_STANDAND_TERMINATED)
			{
				openingStreamTag += ' /';
			}

		 * 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;
