Skip to content

Websocket Routes Only Work on FastAPI, not APIRouter #11779

Discussion options

You must be logged in to vote

Try changing time.sleep(3) to await asyncio.sleep(3).
time.sleep is blocking function, in async functions you should use await asyncio.sleep instead.

If this doesn't help, you probably have errors in the implementation of manager.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@azurelotus0926
Comment options

@YuriiMotov
Comment options

Answer selected by azurelotus0926
@azurelotus0926
Comment options

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