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)