添加接收消息超时

This commit is contained in:
John Smith 2021-01-31 13:47:32 +08:00
parent dca7f1499f
commit 13712f89eb

View File

@ -546,6 +546,7 @@ class BLiveClient:
host_server = self._host_server_list[retry_count % len(self._host_server_list)]
async with self._session.ws_connect(
f'wss://{host_server["host"]}:{host_server["wss_port"]}/sub',
receive_timeout=self._heartbeat_interval + 5,
ssl=self._ssl
) as websocket:
self._websocket = websocket