fix json in zmq

This commit is contained in:
Torma Kristóf 2021-04-25 12:33:49 +02:00
parent 9af55c9b76
commit ee7bef7295

View File

@ -1,7 +1,4 @@
#!/usr/bin/env python3
import itertools
import sys
import zmq
@ -10,7 +7,7 @@ socket = context.socket(zmq.PUB)
socket.bind("tcp://127.0.0.1:5559")
n = 10
msg_body = "a" * n
msg_body = "\"" + "a" * n + "\""
try:
while True:
socket.send_string(f"test {msg_body}")