NotifyClose registers a listener for close events either initiated by an error accompaning a connection.close method or by a normal shutdown.

On normal shutdowns, the chan will be closed.

To reconnect after a transport or protocol error, register a listener here and re-run your setup process.

NotifyClose is referenced in 0 repositories