The following dispatch() function runs receives messages through a Queue.queue and sends them using a ZeroMQ PUSH socket to an endpoin
dispatch()
Queue.queue
PUSH