corda / net.corda.client.rpc.ext / RPCConnectionListener / onDisconnect

onDisconnect

abstract fun onDisconnect(context: ConnectionContext<I>): Unit

This method will be called to inform about connection loss. Since given RPC client may produce multiple RPCConnections, ConnectionContext.connectionOpt will specify which connection is interrupted.