Skip to content

Commit 3b1a0c5

Browse files
committed
feat: Add FastAPISIO.asgi_app getter
1 parent 1f3860a commit 3b1a0c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fastapi_sio/applications.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ def __init__(
7979
app.mount(mount_location, self._asgiapp)
8080
app.state.sio = self._sio
8181

82-
def asyncapi(self) -> AsyncAPI:
82+
@property
83+
def asgi_app(self) -> socketio.ASGIApp:
84+
return self._asgiapp
85+
86+
def asyncapi(self) -> AsyncAPI | None:
8387
if not self.asyncapi_schema:
8488
self.asyncapi_schema = get_asyncapi(
8589
id="urn:com:" + "_".join(self._app.title.lower().split(" ")),

0 commit comments

Comments
 (0)