         self.pingTimer?.invalidate()
         self.connected = false
         self.connecting = false
-        if (!self.reconnnects) {
+        if !self.reconnnects {
             self.handleEvent(event: "disconnect", data: reason)
         } else {
             self.handleEvent(event: "reconnect", data: reason)

                returnDict[key as String] = value
            }
        }
        if (containedData) {
            return (returnDict, true, returnDatas)
        } else {
            return (returnDict, false, nil)

    func createBinaryMessage() -> String {
        var array = "45\(self.placeholders)-["
        array += "\"" + event + "\""
        if args? != nil {
            if args is NSDictionary {
                array += ","
                var jsonSendError:NSError?
                var jsonSend = NSJSONSerialization.dataWithJSONObject(args as NSDictionary,
