close method

Future close ()

Implementation

Future close() {
  if (_subscription != null) {
    _subscription.unsubscribe().then((_) => client.close());
  } else
    client.close();
  return _ctrl.local.sink.close();
}