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

Function main

example/deployment/heroku/app.py:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15async def main():
16 port = int(os.environ["PORT"])
17 async with serve(echo, "localhost", port) as server:
18 loop = asyncio.get_running_loop()
19 loop.add_signal_handler(signal.SIGTERM, server.close)
20 await server.wait_closed()
21
22
23if __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…