The Callback interface lets the user know if Nats has opened or closed a connection and if a connection attempt to a server failed. We should move this functionality into a ConnectionStatus object that has more utility methods for dealing with whether or not a connection has been established as well as which connection is the active one.
The Callback interface lets the user know if Nats has opened or closed a connection and if a connection attempt to a server failed. We should move this functionality into a ConnectionStatus object that has more utility methods for dealing with whether or not a connection has been established as well as which connection is the active one.