Websocket Redirect
I have two services, one have a websocket server on it for live transcription , but the client can only connect with the first one. What I want to do is in the following image :
I checked the documentation, and the closest I can get is from the RedirectResponse section :
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
app = FastAPI()
@app.get("/typer")
### Websocket Redirect
I have two services, one have a websocket server on it for live transcription , but the client can only connect with the first
async def read_typer():
return RedirectResponse("https://typer.tiangolo.com")
I would apperciate any help. Thank you !