typo in ping() and pong()
This commit is contained in:
parent
5b7f7224ed
commit
8f85c9661f
|
@ -447,11 +447,11 @@ class WebSocket(object):
|
|||
|
||||
def ping(self, data=None):
|
||||
"""Write a ping message to the WebSocket."""
|
||||
self._sendmg(0x9, data)
|
||||
self._sendmsg(0x9, data)
|
||||
|
||||
def pong(self, data=None):
|
||||
"""Write a pong message to the WebSocket."""
|
||||
self._sendmg(0xA, data)
|
||||
self._sendmsg(0xA, data)
|
||||
|
||||
def shutdown(self, how, code=1000, reason=None):
|
||||
"""Gracefully terminate the WebSocket connection.
|
||||
|
|
Loading…
Reference in New Issue