Browse Source

Remove unneeded data argument #nolog

pull/449/head
Miguel Grinberg 5 years ago
parent
commit
2a54f6c020
  1. 2
      examples/client/asyncio/latency_client.py
  2. 4
      examples/client/threads/latency_client.py

2
examples/client/asyncio/latency_client.py

@ -20,7 +20,7 @@ async def connect():
@sio.event
async def pong_from_server(data):
async def pong_from_server():
global start_timer
latency = time.time() - start_timer
print('latency is {0:.2f} ms'.format(latency * 1000))

4
examples/client/threads/latency_client.py

@ -1,7 +1,7 @@
import time
import socketio
sio = socketio.Client()
sio = socketio.Client(engineio_logger=True)
start_timer = None
@ -18,7 +18,7 @@ def connect():
@sio.event
def pong_from_server(data):
def pong_from_server():
global start_timer
latency = time.time() - start_timer
print('latency is {0:.2f} ms'.format(latency * 1000))

Loading…
Cancel
Save