code: def publish(self, topic, data, defer=None):
          
          if defer is None:
              self.send(nsq.publish(topic, data))
          else:
              self.send(nsq.deferpublish(topic, data, defer))
docs: Publish a message to the given topic over tcp.
  
          :param topic: the topic to publish to
  
          :param data: bytestring data to publish
  
          :param defer: duration in milliseconds to defer before publishing
              (requires nsq 0.3.6)