Skip to content

Instantly share code, notes, and snippets.

@sphaero
Last active January 28, 2016 17:30
Show Gist options
  • Select an option

  • Save sphaero/2d010750d40690922905 to your computer and use it in GitHub Desktop.

Select an option

Save sphaero/2d010750d40690922905 to your computer and use it in GitHub Desktop.
if __name__ == "__main__":
c = MlmClient()
c.connect("tcp://192.168.1.223:9999", 1000, "PythonTest")
c.set_consumer("stream", ".+")
msg = c.recv().popstr()
while (msg == "hello"):
print(msg)
msg = c.recv().popstr()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment