Skip to content
Snippets Groups Projects
Commit 307f72a3 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Client usage example

parent e59c14bb
Branches
No related tags found
No related merge requests found
......@@ -3,5 +3,12 @@ from controlhost import Client
client = Client('localhost')
client._connect()
client.subscribe('foo')
print client.get_message()
try:
while True:
prefix, message = client.get_message()
print prefix.tag
print prefix.length
print message
except KeyboardInterrupt:
client._disconnect()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment