Skip to content

Instantly share code, notes, and snippets.

@xtao
Created May 29, 2016 11:25
Show Gist options
  • Save xtao/f4c86b0ffd052c0cb628fb3bef00828a to your computer and use it in GitHub Desktop.
Save xtao/f4c86b0ffd052c0cb628fb3bef00828a to your computer and use it in GitHub Desktop.
Python SSE Client
import urllib
response = urllib.urlopen('http://192.168.77.21:9001/v2/coreinfowatcher?watch=1&heartbeat=1')
for line in response:
print line
@backenddeveloper
Copy link

Beautiful.

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