Google is committed to advancing racial equity for Black communities. See how.

close method

void close ()

Close the channel bound to the proxy.

The proxy must have previously been bound (e.g., using bind).

Implementation

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

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