ssh2
ssh2 copied to clipboard
How to tell if a client is disconnected?
How can I tell if a client is disconnected (because end() was called or because the connection was dropped by the server or was lost for some other reason)?
The end/close event should be emitted.
But is there a way to get the current state of the client? Something like sshClient.isConnected()?
There is currently no public way to get at the current state.