Skip to content

Commit

Permalink
websockets: continue listening for messages after parsing completion
Browse files Browse the repository at this point in the history
The prior implementation stops listening for messages after the first
message is received.
  • Loading branch information
dlo committed May 4, 2010
1 parent 00ad92f commit 9ea5f8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tornado/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def _on_frame_type(self, callback, byte):

def _on_end_delimiter(self, callback, frame):
callback(frame[:-1].decode("utf-8", "replace"))
self.receive_message(callback)

def _not_supported(self, *args, **kwargs):
raise Exception("Method not supported for Web Sockets")
Expand Down

0 comments on commit 9ea5f8a

Please sign in to comment.