I have an app combining FastAPI and SocketIO ASGI. On code change, the FastAPI reloads but not the SocketIO one. Is there a way to tell SocketIO to reload on change without using watchdog
? By setting a flag or something very short to write than a watchdog command ?
from fastapi import FastAPI
import socketio
fastapi_app = FastAPI()
app = socketio.ASGIApp(sio, fastapi_app)
if __name__ == "__main__":
import uvicorn
uvicorn.run("app.main:app", host="127.0.0.1", port=8888, log_level="debug", reload=True)