Skip to content

Commit

Permalink
Update documentation for WebSocketHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Darnell committed May 29, 2010
1 parent 70a3770 commit 548bd70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tornado/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def open(self):
self.receive_message(self.on_message)
def on_message(self, message):
self.write_message(u"You said: " + message)
self.write_message(u"You said: " + message)
# receive_message only reads a single message, so call it
# again to listen for the next one
self.receive_message(self.on_message)
Web Sockets are not standard HTTP connections. The "handshake" is HTTP,
but after the handshake, the protocol is message-based. Consequently,
Expand Down

0 comments on commit 548bd70

Please sign in to comment.