Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit a4fc06c

Browse files
authored
Update socket_manager.py
1 parent 14fd23a commit a4fc06c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fastapi_socketio/socket_manager.py

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def __init__(
3333
)
3434

3535
app.mount(mount_location, self._app)
36+
app.add_route(f"/{socketio_path}/", route=self._app, methods=["GET", "POST"])
37+
app.add_websocket_route(f"/{socketio_path}/", self._app)
3638
app.sio = self._sio
3739

3840
def is_asyncio_based(self) -> bool:

0 commit comments

Comments
 (0)