Update README.rst

This commit is contained in:
Kenneth Reitz 2016-02-03 22:10:53 -05:00
parent 3d4ce11d38
commit f26110233b

View file

@ -15,7 +15,7 @@ Elegant WebSockets for your Flask apps.
@sockets.route('/echo')
def echo_socket(ws):
while True:
while not ws.closed:
message = ws.receive()
ws.send(message)