code: def handle_message(self, msg):
          
          # log messages received so that no one else has to
          if self._logger.isEnabledFor(logging.DEBUG):
              self._logger.debug(
                  "received from {}: {}"
                  .format(self.bind_address_string, repr(str(msg))))
  
          if msg.mtype == Message.INFORM:
              return self.handle_inform(msg)
          elif msg.mtype == Message.REPLY:
              return self.handle_reply(msg)
          elif msg.mtype == Message.REQUEST:
              return self.handle_request(msg)
          else:
              self._logger.error("Unexpected message type from server ['%s']."
                                 % (msg,))
docs: Handle a message from the server.
  
          Parameters
          ----------
          msg : Message object
              The Message to dispatch to the handler methods.