     private let serviceURLFull = "https://stream.watsonplatform.net/speech-to-text/api"
     private let url = "wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize"
     
+    // Set this to receive updates about the websocket activity
+    var delegate: WatsonSocketDelegate?
+    
     var audioUploadQueue: NSOperationQueue!
     
     // The format for continuous PCM based recognition requires OGG

        let command : String = "{\"action\": \"start\", \"content-type\": \"\(self.format.rawValue)\"}"
        socket.writeString(command)
        
        audioUploadQueue.suspended = false
        
//        if let audioData = self.audioData {
//            

        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: {
