Upgrade version of fastapi and socketio

This commit is contained in:
Brandon Rising 2024-02-08 16:49:07 -05:00 committed by psychedelicious
parent bb242c4e1e
commit 6c5f743e2b
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ class SocketIO:
def __init__(self, app: FastAPI):
self.__sio = AsyncServer(async_mode="asgi", cors_allowed_origins="*")
self.__app = ASGIApp(socketio_server=self.__sio, socketio_path="socket.io")
self.__app = ASGIApp(socketio_server=self.__sio, socketio_path="/ws/socket.io")
app.mount("/ws", self.__app)
self.__sio.on("subscribe_queue", handler=self._handle_sub_queue)

View File

@ -55,12 +55,12 @@ dependencies = [
"transformers==4.37.2",
# Core application dependencies, pinned for reproducible builds.
"fastapi-events==0.10.0",
"fastapi==0.108.0",
"fastapi-events==0.10.1",
"fastapi==0.109.2",
"huggingface-hub==0.20.3",
"pydantic-settings==2.1.0",
"pydantic==2.5.3",
"python-socketio==5.11.0",
"python-socketio==5.11.1",
"uvicorn[standard]==0.25.0",
# Auxiliary dependencies, pinned only if necessary.