Miguel Grinberg
1 month ago
Failed to extract signature
2 changed files with
0 additions and
2 deletions
-
examples/client/async/latency_client.py
-
examples/client/sync/latency_client.py
|
|
@ -21,7 +21,6 @@ async def connect(): |
|
|
|
|
|
|
|
@sio.event |
|
|
|
async def pong_from_server(): |
|
|
|
global start_timer |
|
|
|
latency = time.time() - start_timer |
|
|
|
print(f'latency is {latency * 1000:.2f} ms') |
|
|
|
await sio.sleep(1) |
|
|
|
|
|
@ -19,7 +19,6 @@ def connect(): |
|
|
|
|
|
|
|
@sio.event |
|
|
|
def pong_from_server(): |
|
|
|
global start_timer |
|
|
|
latency = time.time() - start_timer |
|
|
|
print(f'latency is {latency * 1000:.2f} ms') |
|
|
|
sio.sleep(1) |
|
|
|