socket.engine icon indicating copy to clipboard operation
socket.engine copied to clipboard

Data stuck in loop

Open SinanAkkoyun opened this issue 2 years ago • 0 comments

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.

SinanAkkoyun avatar Jun 10 '23 21:06 SinanAkkoyun