detach method

void detach(
  1. InspectorPeer peer
)

Forgets peer and closes it. Idempotent, because both ends can decide a peer is gone: the transport's read loop and a failed write.

Implementation

void detach(InspectorPeer peer) {
  _attached.remove(peer);
  peer.close();
}