diff --git a/fastapi_socketio/socket_manager.py b/fastapi_socketio/socket_manager.py index ff23726..65a2f56 100644 --- a/fastapi_socketio/socket_manager.py +++ b/fastapi_socketio/socket_manager.py @@ -33,6 +33,8 @@ def __init__( ) app.mount(mount_location, self._app) + app.add_route(f"/{socketio_path}/", route=self._app, methods=["GET", "POST"]) + app.add_websocket_route(f"/{socketio_path}/", self._app) app.sio = self._sio def is_asyncio_based(self) -> bool: