Skip to content

Is there a way to defer the closing of a WebSocket connection? #6784

Answered by mhils
lawrence-forooghian asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to me that this is not currently possible through the addons API. Is that correct?

Yes.

is it something that you'd consider adding support for, or would accept a PR for (obviously, pending some conversations about what the API would look like)?

I would be really curious to hear API suggestions and then evaluate how much time we want to spend on it now. :) A clean API would be nice here, but it's not super easy to design.

The immediate thought that comes to my mind that it would be probably be most useful to extend our ASGI support to WebSockets (see wsgi-flask-app.py). If we could get this to support WebSockets, users would have a really powerful API to handle WebSocket conne…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lawrence-forooghian
Comment options

Answer selected by lawrence-forooghian
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