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

Function get_uri

tests/asyncio/server.py:13–18  ·  view source on GitHub ↗
(server, secure=None)

Source from the content-addressed store, hash-verified

11
12
13def get_uri(server, secure=None):
14 if secure is None:
15 secure = server.server._ssl_context is not None # hack
16 protocol = "wss" if secure else "ws"
17 host, port = get_host_port(server)
18 return f"{protocol}://{host}:{port}"
19
20
21async def handler(ws):

Calls 1

get_host_portFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…