     }
     
     func websocketDidReceiveMessage(text: String) {
-        println(text)
-        println (self.webSocketDidReceiveMessageHandler)
         if let handler = self.webSocketDidReceiveMessageHandler {
             handler(message: text)
         }

    // MARK: - WebsocketDelegate
    
    func websocketDidConnect() {
        if let handler = self.webSocketDidConnectHandler {
            handler(webSocket: self)
        }
    }
    
    func websocketDidDisconnect(error: NSError?) {

    typealias WebSocketDidConnectHandler = (webSocket: FakeWebSocketClient) -> Void
    typealias WebSocketDidReceiveMessageHandler = (message: String) -> Void
    
    private let webSocketDidConnectHandler: WebSocketDidConnectHandler
    private let webSocketDidReceiveMessageHandler: WebSocketDidReceiveMessageHandler?
    
    init(webSocketDidConnectHandler: WebSocketDidConnectHandler, webSocketDidReceiveMessageHandler: WebSocketDidReceiveMessageHandler?) {
        let url = NSURL.URLWithString("ws://localhost:3569")
        self.webSocket = Websocket(url: url)
        self.webSocketDidConnectHandler = webSocketDidConnectHandler
        super.init()
        self.webSocketDidReceiveMessageHandler = webSocketDidReceiveMessageHandler
        self.webSocket.headers = ["Sec-WebSocket-Protocol": ""]
        self.webSocket.delegate = self
        self.webSocket.connect()
    }
    
    convenience init(webSocketDidConnectHandler: WebSocketDidConnectHandler) {
        self.init(webSocketDidConnectHandler, nil)
    }
    
    func send(message: String) {
