         }
     }
     
-    // Sends binary data
-    func sendBinaryData(event:String, data:NSData) {
-        println("should send binary")
-        let message = binaryMessage(event: event, data: data)
-        //        var hexBits = ""
-        //        var byteArray = [UInt8](count: data.length, repeatedValue: 0x0)
-        //        data.getBytes(&byteArray, length:data.length)
-        //        for value in byteArray {
-        //            hexBits += NSString(format:"%2X", value) as String
-        //        }
-        //        let hexBytes = hexBits.stringByReplacingOccurrencesOfString("\u{0020}", withString: "0",
-        //            options: NSStringCompareOptions.CaseInsensitiveSearch)
-        //        println(hexBytes)
-        // println("binary message " + message.createMessage())
-        // println(byteArray)
-        // println("[" + ", ".join(byteArray.map({"\($0)"})) + "]")
-        self.io?.send(message.createMessage())
-        self.io?.send(data)
-    }
-    
     // Sends ping
     func sendPing() {
         if (!self.connected) {

        }
    }
    
    mutating func fillInPlaceHolder(data:NSData) -> Bool {
        func checkDoEvent() -> Bool {
            if (self.placeholders == self.currentPlace) {

    }
}

private struct Event {
    var event:String!
    var args:Any!
    var placeholders:Int!
