code: def listen(self, markAlive=None):
          
          if markAlive is not None:
              self.setActiveStatus(markAlive)
  
          self.startListening()
          self.onListening()
  
          while self.listening and self.doOneListen():
              pass
  
          self.stopListening()
docs: Initializes and runs the listening loop continually
  
          :param markAlive: Whether this should ping the Facebook server each time the loop runs
          :type markAlive: bool