code: func (s *Server) handleRecordingProxy(req *ssh.Request) {
  	var recordingProxy bool
  
  	log.Debugf("Global request (%v, %v) received", req.Type, req.WantReply)
  
  	if req.WantReply {
  		// get the cluster config, if we can't get it, reply false
  		clusterConfig, err := s.authService.GetClusterConfig()
  		if err != nil {
  			err := req.Reply(false, nil)
  			if err != nil {
  				log.Warnf("Unable to respond to global request (%v, %v): %v", req.Type, req.WantReply, err)
  			}
  			return
  		}
  
  		// reply true that we were able to process the message and reply with a
  		// bool if we are in recording mode or not
  		recordingProxy = clusterConfig.GetSessionRecording() == services.RecordAtProxy
  		err = req.Reply(true, []byte(strconv.FormatBool(recordingProxy)))
  		if err != nil {
  			log.Warnf("Unable to respond to global request (%v, %v): %v: %v", req.Type, req.WantReply, recordingProxy, err)
  			return
  		}
  	}
  
  	log.Debugf("Replied to global request (%v, %v): %v", req.Type, req.WantReply, recordingProxy)
  }
docs: // handleRecordingProxy responds to global out-of-band with a bool which
  // indicates if it is in recording mode or not.