Skip to content

aiohttp in 'async with' along with existing websocket app #7926

Answered by Dreamsorcerer
schiebel asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, don't use private, undocumented functions which we'll break later.

Instead, either create an aiohttp application that runs the other parts of your application in cleanup_ctx as per the documentation:
https://docs.aiohttp.org/en/stable/web_advanced.html#complex-applications
Or use the app runners:
https://docs.aiohttp.org/en/stable/web_advanced.html#application-runners

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by schiebel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants