invalidationHandler
An invalidation handler that is called if the connection can not be formed or the connection has terminated and may not be re-established.
Declaration
var invalidationHandler: (() -> Void)? { get set }Discussion
This handler is invoked on the same queue as reply messages and other handlers, and is always executed last (after the interruption handler, if required). You may not send messages over the connection from within an invalidation handler block.