disConnect method

Future disConnect()

Implementation

Future disConnect() async {
  if (socket != null) {
    endCode = '999';
    await socket!.close();
  }
}