Okay its fixed now, thanks for your help seeebek, much appreciated.
Here is the working client.py at its full, outputting valid JSON:
Hope that helps anyone else struggling with same issue and when Jamesrecmuscat returns, he can merge it to the official EDDN github .py
Here is the working client.py at its full, outputting valid JSON:
Code:
import zlib
import zmq.green as zmq
import simplejson
import sys
def main():
context = zmq.Context()
subscriber = context.socket(zmq.SUB)
subscriber.setsockopt(zmq.SUBSCRIBE, "")
subscriber.connect('tcp://eddn-relay.elite-markets.net:9500')
while True:
market_json = zlib.decompress(subscriber.recv())
print market_json
sys.stdout.flush()
if __name__ == '__main__':
main()