feat: add KeepAlive method

This commit is contained in:
Aviv Cohn
2025-02-13 09:10:08 -05:00
parent 6a3e89b4af
commit 046df157e4

View File

@@ -250,6 +250,7 @@ namespace PepperDash.Core
ConnectionInfo connectionInfo = new ConnectionInfo(Hostname, Port, Username, pauth, kauth);
Client = new SshClient(connectionInfo);
Client.ErrorOccurred += Client_ErrorOccurred;
Client.KeepAliveInterval = TimeSpan.FromMilliseconds(30000);
//Attempt to connect
ClientStatus = SocketStatus.SOCKET_STATUS_WAITING;