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

Function hello

example/tls/client.py:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10ssl_context.load_verify_locations(localhost_pem)
11
12def hello():
13 uri = "wss://localhost:8765"
14 with connect(uri, ssl=ssl_context) as websocket:
15 name = input("What's your name? ")
16
17 websocket.send(name)
18 print(f">>> {name}")
19
20 greeting = websocket.recv()
21 print(f"<<< {greeting}")
22
23if __name__ == "__main__":
24 hello()

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…