Skip to content

Data stuck in loop #20

Description

@SinanAkkoyun

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions