How can I use send_json with pyzmq PUB SUB
I need to send a dictionary as the message from a publisher to subscribers. With the REQ/REP pattern send_json and recv_json work nicely, but I can't seem to find an incantation that works for PUB/SUB. Hope it's not the case that PUB/SUB can only work with send() and recv(). Here's the listing for the experiment I put together: """ Experiments with 0MQ PUB/SUB pattern """ import os import sys import time import zmq from multiprocessing import Process from random import sample, choice import signal def handler(signum, frame): """ Handler for SIGTERM """ # kill the processes we've launched try: