插件心跳间隔时间改为30秒

This commit is contained in:
John Smith 2024-03-12 23:52:17 +08:00
parent 87ec69a08d
commit 5cac2bcb59
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ def make_message_body(cmd, data, extra: Optional[dict] = None):
class PluginWsHandler(_PluginApiHandlerBase, tornado.websocket.WebSocketHandler):
HEARTBEAT_INTERVAL = 10
HEARTBEAT_INTERVAL = 30
RECEIVE_TIMEOUT = HEARTBEAT_INTERVAL + 5
def __init__(self, *args, **kwargs):

View File

@ -29,7 +29,7 @@ class BlcPluginClient:
ws_url: str,
*,
session: Optional[aiohttp.ClientSession] = None,
heartbeat_interval: float = 10,
heartbeat_interval: float = 30,
):
self._ws_url = ws_url