feat: 增加ws重连机制
This commit is contained in:
@@ -102,8 +102,8 @@ export const establishSshConnection = (
|
||||
privateKey: connDetails.privateKey,
|
||||
passphrase: connDetails.passphrase,
|
||||
readyTimeout: timeout,
|
||||
keepaliveInterval: 30000, // 保持连接
|
||||
keepaliveCountMax: 3,
|
||||
keepaliveInterval: 10000, // 保持连接
|
||||
keepaliveCountMax: 10,
|
||||
};
|
||||
|
||||
const readyHandler = () => {
|
||||
|
||||
Reference in New Issue
Block a user