     }
     
     func didTouchSend(sender: AnyObject?) {
-        socket.emit(.ChatMessage, withMessage: "I'm iOS")
+        socket.emit(.GetImage, withMessage: "I'm iOS")
     }
     
     

    enum Events: String, Printable {
        
        case ChatMessage = "chat message"
        
        var description: String {
            return self.rawValue

            return SocketIOResult.Success(status: 0)
        }
        
        socket.on(.Image, withCallback: { (arg: SocketIOArg) -> (SocketIOResult) in
            switch arg {
            case .Message(let message):
                println("Finally: \(message)")
            case .JSON(let json):
                if let bufferBase64 = json["buffer"] as? String {
                    
                    let decodedData = NSData(base64EncodedString: bufferBase64, options: NSDataBase64DecodingOptions.IgnoreUnknownCharacters)
                    
                    if let data = decodedData {
                        var decodedimage = UIImage(data: data)
                        if let finalImage = decodedimage {
                            println(finalImage)
                        }
                        println(decodedimage)
                    }
                }
            default:
                println("Not supported")
            }
