Permalink
Browse files

Update app.py

  • Loading branch information...
1 parent babfff9 commit 4dfc1004a94902ecc075c8a729b0c6904d1254b6 @jkbrzt committed Feb 19, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 app.py
View
1 app.py
@@ -12,6 +12,7 @@
def event_stream():
pubsub = red.pubsub()
pubsub.subscribe('chat')
+ # TODO: handle client disconnection.
for message in pubsub.listen():
print message
yield 'data: %s\n\n' % message['data']

0 comments on commit 4dfc100

Please sign in to comment.