mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-23 03:19:41 +00:00
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:
commit
8a3c2c51a0
1 changed files with 5 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue