diff --git a/solara/server/starlette.py b/solara/server/starlette.py index 497e17ceb..ac7eb0760 100644 --- a/solara/server/starlette.py +++ b/solara/server/starlette.py @@ -76,7 +76,7 @@ def __init__(self, ws: starlette.websockets.WebSocket, portal: anyio.from_thread self.portal = portal def close(self): - self.portal.call(self.close) + self.portal.call(self.ws.close) def send_text(self, data: str) -> None: self.portal.call(self.ws.send_text, data)