         let result = Mapper<SpeechToTextResponse>().map(text)
         
         Log.sharedLogger.info(result?.transcription())
+        
+        delegate?.onMessageReceived()
         
 //        if let callback = self.callback {
 //            

        oncompletion: (String?, NSError?) -> Void)
    {
        let authorizationString = username + ":" + password
        let apiKey = "Basic " + (authorizationString.dataUsingEncoding(NSASCIIStringEncoding)?.base64EncodedStringWithOptions(NSDataBase64EncodingOptions.Encoding76CharacterLineLength))!
        
        NetworkUtils.requestAuthToken(tokenURL, serviceURL: serviceURLFull,
            apiKey: apiKey, completionHandler: {

        let command : String = "{\"action\": \"start\", \"content-type\": \"\(self.format.rawValue)\"}"
        socket.writeString(command)
        
        Log.sharedLogger.info("Sending \(command) through socket")
        
        audioUploadQueue.suspended = false
        
        delegate?.onConnected()
        
//        if let audioData = self.audioData {
//            
