From: Ben Darnell Date: Sun, 27 Sep 2015 16:33:30 +0000 (-0400) Subject: Fix typo in websocket_connect docs. X-Git-Tag: v4.3.0b1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=901fc49120d99e3166c30c1b871b8b48654e4401;p=thirdparty%2Ftornado.git Fix typo in websocket_connect docs. Fixes #1522. --- diff --git a/tornado/websocket.py b/tornado/websocket.py index d688295ff..58262cc39 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -1024,7 +1024,7 @@ def websocket_connect(url, io_loop=None, callback=None, connect_timeout=None, style, the application typically calls `~.WebSocketClientConnection.read_message` in a loop:: - conn = yield websocket_connection(loop) + conn = yield websocket_connect(url) while True: msg = yield conn.read_message() if msg is None: break