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

Function main

example/deployment/kubernetes/app.py:33–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33async def main():
34 async with serve(slow_echo, "", 80, process_request=health_check) as server:
35 loop = asyncio.get_running_loop()
36 loop.add_signal_handler(signal.SIGTERM, server.close)
37 await server.wait_closed()
38
39
40if __name__ == "__main__":

Callers 1

app.pyFile · 0.70

Calls 2

serveFunction · 0.90
wait_closedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…