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();
final callback = onClose;
if (callback != null) {
callback();
}
}
}