typo in ping() and pong()

This commit is contained in:
Felix J. Ogris 2017-04-12 18:01:13 +02:00
parent 5b7f7224ed
commit 8f85c9661f
1 changed files with 2 additions and 2 deletions

View File

@ -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.