PeerRegistry class
The set of peers currently reachable on a relay-style transport.
Where LSL discovers peers by multicast-resolving the network, a hub or an in-process bus already knows who is connected — so discovery reduces to querying this table. Both the in-memory transport and the WebSocket hub use it, which is what lets the hub stay a dumb relay: it holds a registry and a routing table and no protocol logic at all.
Peers are keyed by PeerDescriptor.endpointId: one entry per published stream per node, matching LSL's one-outlet-per-stream model.
Constructors
Properties
-
changes
→ Stream<
RegistryDelta> -
Emitted whenever a peer is attached, updated or detached.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
no setter
-
peers
→ Iterable<
PeerDescriptor> -
Every registered peer.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attach(
PeerDescriptor descriptor) → void -
Registers
descriptor, or updates it if the endpoint is already known. -
clear(
) → void -
detach(
String endpointId) → PeerDescriptor? - Removes a peer. Returns the removed descriptor, or null if unknown.
-
detachNode(
String nodeUId) → List< PeerDescriptor> -
Removes every endpoint belonging to
nodeUId. -
dispose(
) → void -
match(
DiscoveryQuery query) → List< PeerDescriptor> -
Every peer matching
query. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String endpointId) → PeerDescriptor?