FastAPI, AsgiFunctionApp and WebSockets #1537
Unanswered
Michel Hua (mycaule)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to write a FastAPI websocket endpoint just like in their tutorial, I can successfully run it with
fastapi dev app.pyonlocalhost:8000.Now, when I mount the FastAPI app using
AsgiFunctionAppandfunc start, there is a newhttp_app_funconlocalhost:7071.http_app_func: [GET,POST,DELETE,HEAD,PATCH,PUT,OPTIONS] http://localhost:7071/api/{*route}But the same CLI test is not working,
How can I change the implementation of
AsgiFunctionAppso that it also supports WebSockets, additional to the HTTP methods listed aboveAll reactions