]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Make ping() argument optional
authorBen Darnell <ben@bendarnell.com>
Sun, 11 Mar 2018 20:13:51 +0000 (16:13 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 11 Mar 2018 20:13:51 +0000 (16:13 -0400)
commitcfd621a30d56f345c179f2d30c51163986ffac33
tree9c48ce6f41d2ca3a85f74bda1e78d9b270c9a209
parent8a73d592bcb0fa0a0a3f9a8bb22282ebe89c967b
websocket: Make ping() argument optional

Also accept both bytes and str, and add a client-side ping() method.

Fixes #2295
tornado/test/websocket_test.py
tornado/websocket.py