old_contents: # http://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/patterns/pair.html
  
  import time
  
  import zmq
  
  port = "5556"
  context = zmq.Context()
  socket = context.socket(zmq.PAIR)
  socket.connect("tcp://localhost:%s" % port)
  
  while True:
      msg = socket.recv()
      print(msg)
      socket.send("client message to server1")
      socket.send("client message to server2")
      time.sleep(1)
  
new_contents: # http://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/patterns/pair.html
  
  import time
  
  import zmq
  
  port = "5556"
  context = zmq.Context()
  socket = context.socket(zmq.PAIR)
  socket.connect("tcp://localhost:{}".format(port))
  
  while True:
      msg = socket.recv()
      print(msg)
      socket.send("client message to server1")
      socket.send("client message to server2")
      time.sleep(1)
  
subject: Update exercises/chat/online_examples/pairclient.py