def publish(self, topic, message):
        """Use :class:`~gnsq.Producer` instead.

        .. deprecated:: 1.0.0
        """
        if not self.connections:
            raise NSQNoConnections()
        conn = random.choice(list(self.connections))
        conn.publish(topic, message)