From 45f438276222530e12da2e00165f3b6a8528976a Mon Sep 17 00:00:00 2001 From: arabcoders Date: Sat, 10 May 2025 19:38:36 +0300 Subject: [PATCH] minor fixes --- app/library/HttpSocket.py | 5 +++-- ui/components/FloatingImage.vue | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/library/HttpSocket.py b/app/library/HttpSocket.py index e12cea1b..77ea1c56 100644 --- a/app/library/HttpSocket.py +++ b/app/library/HttpSocket.py @@ -373,15 +373,16 @@ class HttpSocket(Common): pass @ws_event - async def disconnect(self, sid: str): + async def disconnect(self, sid: str, reason: str): """ Handle client disconnection. Args: sid (str): The session ID of the client. + reason (str): The reason for disconnection. """ - LOG.debug(f"Client '{sid}' disconnected.") + LOG.debug(f"Client '{sid}' disconnected. {reason}") for event in self.subscribers: if sid in self.subscribers[event]: diff --git a/ui/components/FloatingImage.vue b/ui/components/FloatingImage.vue index 2ab910cd..50e1ae5e 100644 --- a/ui/components/FloatingImage.vue +++ b/ui/components/FloatingImage.vue @@ -4,8 +4,10 @@