     
     // We lost connection and should attempt to reestablish
     private func tryReconnect(var #triesLeft:Int) {
-        if (triesLeft != -1 && triesLeft <= 0) {
+        if triesLeft != -1 && triesLeft <= 0 {
             self.connecting = false
             self.reconnnects = false
             self.reconnecting = false
             self.handleEvent(event: "disconnect", data: "Failed to reconnect")
             return
-        } else if (self.connected) {
+        } else if self.connected {
             self.connecting = false
             self.reconnecting = false
             return

    }
    
    func executeCallback(args:AnyObject?) {
        if (args != nil) {
            callback(data: args!)
        } else {
            callback(data: nil)

            var mutMessage = RegexMutable(stringMessage)
            var setup:String!
            let messageData = mutMessage["(\\d*)(\\{.*\\})?"].groups()
            if messageData != nil && messageData[1] == "0" {
                setup = messageData[2]
                let data = setup.dataUsingEncoding(NSUTF8StringEncoding)!
                var jsonError:NSError?
                
                if let json:AnyObject? = NSJSONSerialization.JSONObjectWithData(data,
                    options: nil, error: &jsonError) {
                        self.startPingTimer(interval: (json!["pingInterval"] as Int) / 1000)
