Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
def
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
63
web.run_app(init())
Callers
1
web_ws.py
File · 0.70
Calls
2
add_get
Method · 0.80
append
Method · 0.80
Tested by
no test coverage detected