unregister method

void unregister(
  1. NodeId id
)

Removes id from the bus and notifies all remaining nodes.

Implementation

void unregister(NodeId id) {
  _nodes.remove(id);
  for (final other in _nodes.values) {
    other.injectPeerLost(id);
  }
}