This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Websocket Routes Only Work on FastAPI, not APIRouter when using prefix #2904
Labels
You can continue the conversation there. Go to discussion →
Description
Websocket routes appear to only work on the main FastAPI object, not on APIRouter objects (instead it raises WebSocketDisconnect).
Example
Here's a self-contained, minimal, reproducible, example with my use case:
Further info
Environment
The text was updated successfully, but these errors were encountered: