WebSocketDisconnectEvent
is not handling the reason
field
#2299
-
While investigating an issue with HTTPX WS, I noticed that, when a client disconnects, Uvicorn handles the After having a look at the ASGI specification, it seems indeed that the Disconnect (receive) event does not support this field: https://asgi.readthedocs.io/en/latest/specs/www.html#disconnect-receive-event-ws However, from Starlette, the So, I'm not sure where the problem comes from:
Insights about this would be welcome :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Asked the question |
Beta Was this translation helpful? Give feedback.
-
For future reference: the ASGI specification has evolved to support this and it has been implemented in Uvicorn. |
Beta Was this translation helpful? Give feedback.
For future reference: the ASGI specification has evolved to support this and it has been implemented in Uvicorn.