MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / init

Function init

examples/web_ws.py:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def init() -> web.Application:
55 app = web.Application()
56 l: list[web.WebSocketResponse] = []
57 app[sockets] = l
58 app.router.add_get("/", wshandler)
59 app.on_shutdown.append(on_shutdown)
60 return app
61
62
63web.run_app(init())

Callers 1

web_ws.pyFile · 0.70

Calls 2

add_getMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected