close method

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

Implementation

@override
Future<void> close() async {
  try {
    if (_socket != null) {
      await _socket?.sink.close();
    }
  } catch (_) {}
  _socket = null;
}