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

Function hello

example/sync/client.py:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def hello():
9 with connect("ws://localhost:8765") as websocket:
10 name = input("What's your name? ")
11
12 websocket.send(name)
13 print(f">>> {name}")
14
15 greeting = websocket.recv()
16 print(f"<<< {greeting}")
17
18
19if __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…