diff --git a/websocket-tcp-chat/client.py b/websocket-tcp-chat/client.py index 8a1bd9ae..4de91784 100755 --- a/websocket-tcp-chat/client.py +++ b/websocket-tcp-chat/client.py @@ -33,7 +33,7 @@ def start_client(loop, url): elif msg.type == aiohttp.WSMsgType.BINARY: print('Binary: ', msg.data) elif msg.type == aiohttp.WSMsgType.PING: - ws.pong() + yield from ws.pong() elif msg.type == aiohttp.WSMsgType.PONG: print('Pong received') else: