disconnect method

Future disconnect()

Implementation

Future disconnect() async {
  status = ProConnectionStatus.disconnected;
  await socketStatusListener?.cancel();
  await socketListener?.cancel();
  await ws.dispose();
}