mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-25 20:30:28 +08:00
插件心跳间隔时间改为30秒
This commit is contained in:
parent
87ec69a08d
commit
5cac2bcb59
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user