Open asgoel opened 3 years ago
This would be a topic to raise as a change to the ASGI spec here no?
https://asgi.readthedocs.io/en/latest/specs/www.html#close-send-event
I'm not sure? It looks like uvicorn does support it: https://github.com/encode/uvicorn/blob/c87c7834b77583efd5963dfddb08681206701d33/uvicorn/protocols/websockets/websockets_impl.py#L266-L270
I ran into the same issue. This is implemented in the autobahn
library and not in daphne
. I have created an issue there. See https://github.com/crossbario/autobahn-python/issues/1642
Are there plans to add support for the close reason as well as the close code for websockets? Have a use case for it, and was just curious.