close method

void close ()

Implementation

void close() {
  if (isBound) {
    if (_pendingResponsesCount > 0) {
      proxyError('The proxy is closed.');
    }
    _reset();
    _reader.close();

    final callback = onClose;
    if (callback != null) {
      callback();
    }
  }
}