From 901fc49120d99e3166c30c1b871b8b48654e4401 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 27 Sep 2015 12:33:30 -0400 Subject: [PATCH] Fix typo in websocket_connect docs. Fixes #1522. --- tornado/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/websocket.py b/tornado/websocket.py index d688295f..58262cc3 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