socket.engine
socket.engine copied to clipboard
Data stuck in loop
Hi
from socketengine import host
h = host()
h.start()
while True:
data = h.get_ALL("test")
if data is not None:
for item in data:
print(item)
if(item == "Hello there!"):
print("Sent")
break
h.close()
If I use that code, the received message is stuck forever and does not clear, resulting in the while loop to constantly output the received message.