code: def publish(self, topic, message):
          
          if not self.connections:
              raise NSQNoConnections()
          conn = random.choice(list(self.connections))
          conn.publish(topic, message)
docs: Use :class:`~gnsq.Producer` instead.
  
          .. deprecated:: 1.0.0