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

Function hello

example/asyncio/client.py:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10async def hello():
11 async with connect("ws://localhost:8765") as websocket:
12 name = input("What's your name? ")
13
14 await websocket.send(name)
15 print(f">>> {name}")
16
17 greeting = await websocket.recv()
18 print(f"<<< {greeting}")
19
20
21if __name__ == "__main__":

Callers 1

client.pyFile · 0.70

Calls 3

connectFunction · 0.90
sendMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…