objectrtpapa{def main(args :Array[String]){valNOFLAGS=0//We will do this all in one thread to emphasize the sequence//of events…val ctx =ZMQ.context(1)val client = ctx.socket(ZMQ.ROUTER)val worker = ctx.socket(ZMQ.REP)