diff --git a/nc_py_api/ex_app/integration_fastapi.py b/nc_py_api/ex_app/integration_fastapi.py index ba4cdf33..c1ffdb64 100644 --- a/nc_py_api/ex_app/integration_fastapi.py +++ b/nc_py_api/ex_app/integration_fastapi.py @@ -241,7 +241,7 @@ def __init__( async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: """Method that will be called by Starlette for each event.""" - if scope["type"] != "http": + if scope["type"] not in ("http", "websocket"): await self.app(scope, receive, send) return