import time
import zmq

context = zmq.Context()
sock = context.socket(zmq.PUB)
url = "tcp://127.0.0.1:8080"

sock.bind(url)

while True:
    time.sleep(1)
    sock.send_string(url + ':' + time.ctime())
