Merge pull request #3351 from taiwan-dog/pm/disable-default-websocket-keepalive

fix: disable library WebSocket keepalive for device server
This commit is contained in:
hrz 2026-09-05 00:37:23 +08:00 committed by GitHub
commit 8a3c2c51a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,11 @@ class WebSocketServer:
port = int(server_config.get("port", 8000))
async with websockets.serve(
self._handle_connection, host, port, process_request=self._http_response
self._handle_connection,
host,
port,
process_request=self._http_response,
ping_interval=None,
):
await asyncio.Future()