def publish(self, topic, data):
        if self.is_connected:
            return self.publish_tcp(topic, data)
        else:
            return self.publish_http(topic, data)
Publish a message.
dataset/ETHPy150Open wtolson/gnsq/gnsq/nsqd.py/Nsqd.publish