You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am trying to write a FastAPI websocket endpoint just like in their tutorial, I can successfully run it with
fastapi dev app.py
onlocalhost:8000
.Now, when I mount the FastAPI app using
AsgiFunctionApp
andfunc start
, there is a newhttp_app_func
onlocalhost: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
AsgiFunctionApp
so that it also supports WebSockets, additional to the HTTP methods listed aboveBeta Was this translation helpful? Give feedback.
All reactions