             completionHandler(nil, error)
         }
 
+        print("6")
+
         manager.writeString(start)
+
+        print("7")
 
         session = AVCaptureSession()
         guard let session = session else {
             return { }
         }
+
+        print("8")
 
         let microphoneDevice = AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeAudio)
         let microphoneInput = try? AVCaptureDeviceInput(device: microphoneDevice)
         if session.canAddInput(microphoneInput) {
             session.addInput(microphoneInput)
         }
+
+        print("9")
 
         let output = AVCaptureAudioDataOutput()
         let queue = dispatch_queue_create("sample buffer_delegate", DISPATCH_QUEUE_SERIAL)


    init(manager: WebSocketManager) {
        self.manager = manager
    }

    func captureOutput(

            completionHandler(nil, error)
            return { }
        }

        print("5")

        let manager = WebSocketManager(authStrategy: authStrategy, url: url)
        manager.onText = { text in
