 			logger(text);
 		};
 		
-		public function WebSocket(uri:String, origin:String, protocol:String = null, timeout:uint = 10000, socket:Socket = null)
+		public function WebSocket(uri:String, origin:String, protocol:String = null, timeout:uint = 10000)
 		{
 			super(null);
 			_uri = new URI(uri);

		private var incomingBuffer:ByteArray;
		private var outgoingBuffer:ByteArray;
		
		private var URIpathExcludedBitmap:URIEncodingBitmap =
			new URIEncodingBitmap(URI.URIpathEscape);
		

		private var _secure:Boolean;
		private var _origin:String;
		
		private var rawSocket:Socket;
		private var socket:Socket;
		private var timeout:uint;
		
