Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update app.py

  • Loading branch information...
commit 4dfc1004a94902ecc075c8a729b0c6904d1254b6 1 parent babfff9
Jakub Roztočil authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app.py
1  app.py
View
@@ -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']
Please sign in to comment.
Something went wrong with that request. Please try again.