Skip to content

Commit 2a54f6c

Browse files
Remove unneeded data argument #nolog
1 parent f1a2e54 commit 2a54f6c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/client/asyncio/latency_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def connect():
2020

2121

2222
@sio.event
23-
async def pong_from_server(data):
23+
async def pong_from_server():
2424
global start_timer
2525
latency = time.time() - start_timer
2626
print('latency is {0:.2f} ms'.format(latency * 1000))

examples/client/threads/latency_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import time
22
import socketio
33

4-
sio = socketio.Client()
4+
sio = socketio.Client(engineio_logger=True)
55
start_timer = None
66

77

@@ -18,7 +18,7 @@ def connect():
1818

1919

2020
@sio.event
21-
def pong_from_server(data):
21+
def pong_from_server():
2222
global start_timer
2323
latency = time.time() - start_timer
2424
print('latency is {0:.2f} ms'.format(latency * 1000))

0 commit comments

Comments
 (0)