]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: deprecate callback argument to websocket_connect 3486/head
authorBen Darnell <ben@bendarnell.com>
Fri, 25 Apr 2025 15:53:44 +0000 (11:53 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 25 Apr 2025 15:55:40 +0000 (11:55 -0400)
commitabbc070ea2e4e7526da6577929dcb8acf0b71a13
treeed67533a88668c42f069948cad30ee85a5358b25
parent9fe010f6fc17ea9fbf19d23d537163b1d1fae9ba
websocket: deprecate callback argument to websocket_connect

This was missed in the 6.0-era deprecation of callback arguments.
The on_message_callback remains because even in coroutine-oriented
code it is often more convenient to use a callback than to
loop on read_message.
tornado/test/websocket_test.py
tornado/websocket.py