Publishes the message to all subscribers of this topic

        :param message: (object), the message to be published.

def publish(self, message):
        """
        Publishes the message to all subscribers of this topic

        :param message: (object), the message to be published.
        """
        message_data = self._to_data(message)
        self._encode_invoke(topic_publish_codec, message=message_data)