Expand description
Transport-independent WebRTC answerer for webrtc.signal/1.
Carriers (node-app-iroh, node-app-p2p) implement WebRtcCarrier for
ICE environment and session bookkeeping, then pass WebRtcAnswerer as the
crate::WebRtcSignaling hook into crate::serve.
Structs§
- Byte
Budget - Shared byte budget for one WebRTC answerer session.
- Mapped
Session Port - A granted external mapping for one ICE session socket.
- NoSession
Port Mapper - Mapper that always refuses (host / STUN-only ICE).
- Null
WebRtc Carrier - Minimal carrier: no STUN, no portmap, system clock.
- Static
WebRtc Carrier - Carrier with fixed STUN servers and an optional port mapper (tests / simple hosts).
- WebRtc
Answerer - Shared WebRTC answerer implementing
WebRtcSignaling. - WebRtc
Handle - Synchronous teardown seam used by revalidation, replacement and shutdown.
Enums§
- MapRefusal
- Why a mapping request failed.
Constants§
- SESSION_
BYTES - Soft cap on in-flight session bytes (DC queues + HTTP request decode).
Traits§
- Session
Port Mapper - Carrier-owned UDP session port mapper (UPnP, relay map, etc.).
- WebRtc
Carrier - What a carrier must supply to run the shared WebRTC answerer.
Functions§
- serve
- Run on the app’s existing tokio runtime, never on its capability courier.
stuncontains advertised public-member STUN socket addresses (no TURN).