MCPcopy Index your code
hub / github.com/python-websockets/websockets / client

Function client

experiments/broadcast/clients.py:27–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27async def client():
28 try:
29 async with connect(
30 "ws://localhost:8765",
31 ping_timeout=None,
32 ) as websocket:
33 async for msg in websocket:
34 client_time = time.time_ns()
35 server_time = int(msg[:19].decode())
36 LATENCIES[websocket] = client_time - server_time
37 except Exception as exc:
38 print(exc)
39
40
41async def main(count, interval):

Callers 1

mainFunction · 0.70

Calls 2

connectFunction · 0.90
decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…