         self.ws = WebSocket(url: NSURL(string: self.urlWebSocket! + "&sid=\(self.sid)")!)
         self.ws?.queue = self.handleQueue
         self.ws?.delegate = self
-        
+                
         if connect {
             self.ws?.connect()
         }

            if self!.fastUpgrade {
                self?.doFastUpgrade()
                return
            } else if !self!.closed {
                self?.doPoll()
            }
            }.resume()

                length += chr
            } else {
                if length == "" || testLength(length, &n) {
                    NSLog("parsing error: \(str)")
                    self.handlePollingFailed("Error parsing XHR message")
                    return
                }
