Disconnects the FTPClient.
client.Disconnect();
let client = ftp.Connect( "sftp", "example.domain.com", 22, "brad", "password" ); let success = client.IsConnected(); if (success) { // Do some ftp work... client.Disconnect(); }