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

Function hello

example/asyncio/server.py:9–16  ·  view source on GitHub ↗
(websocket)

Source from the content-addressed store, hash-verified

7
8
9async def hello(websocket):
10 name = await websocket.recv()
11 print(f"<<< {name}")
12
13 greeting = f"Hello {name}!"
14
15 await websocket.send(greeting)
16 print(f">>> {greeting}")
17
18
19async def main():

Callers

nothing calls this directly

Calls 2

recvMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…