close method

Future<void> close()

Implementation

Future<void> close() async {
  if (_closed) return;
  _closed = true;
  await _subscription.cancel();
  await socket.close();
  await _responses.close();
  await _notifications.close();
}