disconnect method

  1. @override
Future<void> disconnect ()
override

Use this for housekeeping to disconnect this Client from the Server

Implementation

@override
Future<void> disconnect() async{
  await _disconnectFromMulticastGroup();
  _disconnectFromServer();
  _discoveredDevices.clear(); // remove all devices found (which should just be one)
}