Detecting disconnection and reconnecting

Nov 26, 2014 at 1:36 PM
Is there a way of detecting being disconnected and possibly reconnecting.

The only way I seem to get this to work is by attaching to the exception event and reconnecting open exception. this is a bit dirty for 2 reasons.
  1. mutiple exceptions can be thrown so I have to manage this (other wise it reconnect mutiple times.
  2. After the first SshConnectionException is thrown and ive reconnected. the exception doesnt seem to through again if I'm disconnected.
Amy ideas.
Coordinator
Nov 26, 2014 at 5:14 PM
I'm actually planning on adding closing (or disconnecting) and (closed (or disconnected) events, but I first want to get a new stable release out.