disconnect method

Future<void> disconnect()

Free TonClient and resources should be always run when you don't need client any more

Implementation

Future<void> disconnect() async {
  if (_utils == null) {
    throw ('Client core not connected! Use TonClient.connect to open connection!');
  }
  _tonCore.disconnect();
  _utils = null;
  _abi = null;
  _boc = null;
  _crypto = null;
  _processing = null;
  _tvm = null;
  _net = null;
  _debot = null;
  _proofs = null;
  _client = null;
}