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

Function main

example/legacy/basic_auth_server.py:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 await websocket.send(greeting)
13
14async def main():
15 async with serve(
16 hello, "localhost", 8765,
17 create_protocol=basic_auth_protocol_factory(
18 realm="example", credentials=("mary", "p@ssw0rd")
19 ),
20 ):
21 await asyncio.get_running_loop().create_future() # run forever
22
23asyncio.run(main())

Callers 1

Calls 2

serveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…