def _dispatch_message(self, mid, message):
     self._logger.debug("Dispatching [message] event")
     subscriptions = self._subscription_manager.list_records()
     if subscriptions:
         for topic, (qos, message_callback) in subscriptions:
             if topic_matches_sub(topic, message.topic) and message_callback:
                 message_callback(None, None, message)  # message_callback(client, userdata, message)
 def _dispatch_message(self, mid, message):
     self._logger.debug("Dispatching [message] event")
     subscriptions = self._subscription_manager.list_records()
     if subscriptions:
         for topic, (qos, message_callback, _) in subscriptions:
             if topic_matches_sub(topic, message.topic) and message_callback:
                 message_callback(None, None, message)  # message_callback(client, userdata, message)