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

Function main

example/tutorial/step3/app.py:192–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191
192async def main():
193 port = int(os.environ.get("PORT", "8001"))
194 async with serve(handler, "", port, process_request=health_check) as server:
195 loop = asyncio.get_running_loop()
196 loop.add_signal_handler(signal.SIGTERM, server.close)
197 await server.wait_closed()
198
199
200if __name__ == "__main__":

Callers 1

app.pyFile · 0.70

Calls 3

serveFunction · 0.90
getMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…