With https://github.com/scs/substrate-api-client/pull/863 function `disconnect_reason` is deprecated. This shall be removed with the next release. See https://github.com/scs/substrate-api-client/blob/master/api-client/src/rpc/jsonrpsee_client/mod.rs#L71-L89