<filename>old-visualizer-py/debug/test-udp-client.py
import socket
import json
from time import sleep

UDP_IP = '127.0.0.1'
UDP_PORT = 55555

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
sock.setblocking(0)

while True:
	try:
		data, addr = sock.recvfrom(1024)
		print(json.loads(data))
	except BlockingIOError:
		print('got error')
		sleep(0.1)

<filename>old-visualizer-py/debug/test-udp-client.py
import socket
import json
from time import sleep

UDP_IP = '127.0.0.1'
UDP_PORT = 55555

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
sock.setblocking(0)

while True:
	try:
		data, addr = sock.recvfrom(1024)
		print(json.loads(data))
	except BlockingIOError:
		print('got error')
		sleep(0.1)
