From d74e68d59330460a413a8db0f3207692b84e52b0 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 29 Dec 2024 17:28:41 +0100 Subject: [PATCH] removed. --- src/rwebgui/app.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/rwebgui/app.py b/src/rwebgui/app.py index 7c1e5a2..19bfb2a 100644 --- a/src/rwebgui/app.py +++ b/src/rwebgui/app.py @@ -154,20 +154,16 @@ class Application(BaseApplication): self.router.add_get("/ws/{uuid}", self.websocket_handler) async def websocket_handler(self, request): - # Extract the UUID from the route uuid_value = request.match_info["uuid"] - # Validate if it's a valid UUID try: uuid_obj = uuid.UUID(uuid_value) except ValueError: return web.Response(text="Invalid UUID", status=400) - # Upgrade the connection to WebSocket ws = web.WebSocketResponse() await ws.prepare(request) - print(f"WebSocket connection established with UUID: {uuid_obj}") component = App(self, "app", ws=ws) await component.service()