Skip to content
Discussion options

You must be logged in to vote

Your snippet is unrealistic. The WebSocketDisconnect only raises on websocket.receive().

Note: the next release of Uvicorn/Starlette will raise WebSocketDisconnect on send() as well.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@econeale
Comment options

@Kludex
Comment options

Kludex Jan 22, 2024
Collaborator

@econeale
Comment options

@Kludex
Comment options

Kludex Feb 16, 2024
Collaborator

@vatheara
Comment options

Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
3 participants