summaryrefslogtreecommitdiff
path: root/kvmd/htserver.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2025-01-05 15:11:27 +0200
committerMaxim Devaev <[email protected]>2025-01-05 15:11:27 +0200
commit5a61ddecd3a6fadb71464cc32823e63a8009fb2b (patch)
tree7b6995c2572ef00fffaeb6801b0afeb082f17b30 /kvmd/htserver.py
parenta12163a7978fe2edf1649064e0b00694e315c84d (diff)
Removed ws legacy mode and some msd legacy
Diffstat (limited to 'kvmd/htserver.py')
-rw-r--r--kvmd/htserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/htserver.py b/kvmd/htserver.py
index 63c82fcb..1ef3cc48 100644
--- a/kvmd/htserver.py
+++ b/kvmd/htserver.py
@@ -404,12 +404,12 @@ class HttpServer:
break
return ws.wsr
- async def _broadcast_ws_event(self, event_type: str, event: (dict | None), legacy: (bool | None)=None) -> None:
+ async def _broadcast_ws_event(self, event_type: str, event: (dict | None)) -> None:
if self.__ws_sessions:
await asyncio.gather(*[
ws.send_event(event_type, event)
for ws in self.__ws_sessions
- if ws.is_alive() and (legacy is None or ws.kwargs.get("legacy") == legacy)
+ if ws.is_alive()
], return_exceptions=True)
async def _close_all_wss(self) -> bool: