]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix typo in websocket_connect docs.
authorBen Darnell <ben@bendarnell.com>
Sun, 27 Sep 2015 16:33:30 +0000 (12:33 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 27 Sep 2015 16:33:30 +0000 (12:33 -0400)
Fixes #1522.

tornado/websocket.py

index d688295ff97216b122c557bbc87913ad04ffde86..58262cc39961cb0a256e6e1dd800ec73e6753b76 100644 (file)
@@ -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