From: Ben Darnell Date: Sat, 8 Nov 2014 18:01:01 +0000 (-0500) Subject: Add *args, **kw to WebSocketHandler.open. X-Git-Tag: v4.1.0b1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d75e10f32e192396880cdf80a073fa3f58d73a;p=thirdparty%2Ftornado.git Add *args, **kw to WebSocketHandler.open. This matches the default implementations of get/post/put/etc. Closes #1242 --- diff --git a/tornado/websocket.py b/tornado/websocket.py index d960b0e40..5c762adb6 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -229,7 +229,7 @@ class WebSocketHandler(tornado.web.RequestHandler): """ return None - def open(self): + def open(self, *args, **kwargs): """Invoked when a new WebSocket is opened. The arguments to `open` are extracted from the `tornado.web.URLSpec`