close method

Future<void> close()

Implementation

Future<void> close() async {
  if (_socket != null) {
    await _socket!.close();
    _socket = null;
  }
}