Skip to content
PACKAGES

WireBridge

Kind: class

Source: src/graphrefly/_wire_facade.py:237

WireBridge(graph: Graph, nodes: _envelope.BridgeNodes, switch: _envelope.Released)

A wire bridge: the envelope layer between frames and canonical protobuf bytes.

events sends {index, event} facts with a monotonic index. The bridge is retained until release() or graph close, even without external subscribers. outbound_bytes sends canonical WireBridgeEnvelope bytes to the transport; frames and values are what arrived; ack_timeouts is the explicit ingress of ack-timeout facts; status and issues are graph-visible facts. release() is idempotent host lifetime cleanup: the bridge and its drivers stop acting.

NameTypeDescription
eventsNode[WireBridgeIndexedEvent]
outbound_bytesNode[bytes]
framesNode[WireEdgeCause]
valuesNode[bytes]
statusNode[WireBridgeStatus]
issuesNode[WireBridgeIssue]
ack_timeoutsState[WireBridgeAckTimeout]
releasedboolReturn whether this bridge has been released.
release() -> None

Stop the bridge and its ack drivers; later facts change nothing.

Source: src/graphrefly/_wire_facade.py:277