FastAPI websocket connection stay connected for a fixed time period
After several attempts and not getting the result, I wonder if it’s even possible to serve websockets via fastapi and keep it open no more and no less
than a fixed time. This is what I have for the websocket code in my api: