Skip to main content

PeerRouterConfig

Type Alias PeerRouterConfig 

Source
pub type PeerRouterConfig = WebRTCConfig;

Aliased Type§

pub struct PeerRouterConfig {
Show 15 fields pub relays: Vec<String>, pub signaling_enabled: bool, pub max_outbound: usize, pub max_inbound: usize, pub hello_interval_ms: u64, pub message_timeout_ms: u64, pub stun_servers: Vec<String>, pub debug: bool, pub multicast: MulticastConfig, pub wifi_aware: WifiAwareConfig, pub bluetooth: BluetoothConfig, pub pools: PoolSettings, pub request_selection_strategy: SelectionStrategy, pub request_fairness_enabled: bool, pub request_dispatch: RequestDispatchConfig,
}

Fields§

§relays: Vec<String>

Nostr relays for signaling

§signaling_enabled: bool

Whether negotiated WebRTC signaling should run at all.

§max_outbound: usize

Maximum outbound connections (legacy, use pools instead)

§max_inbound: usize

Maximum inbound connections (legacy, use pools instead)

§hello_interval_ms: u64

Hello message interval in milliseconds

§message_timeout_ms: u64

Message timeout in milliseconds

§stun_servers: Vec<String>

STUN servers for NAT traversal

§debug: bool

Enable debug logging

§multicast: MulticastConfig

Optional LAN multicast transport for offline discovery + root lookup.

§wifi_aware: WifiAwareConfig

Optional Android Wi-Fi Aware nearby discovery/signaling bus.

§bluetooth: BluetoothConfig

Optional native Bluetooth peer transport.

§pools: PoolSettings

Pool settings for follows and other peers

§request_selection_strategy: SelectionStrategy

Retrieval peer selection strategy (shared with simulation).

§request_fairness_enabled: bool

Whether fairness constraints are enabled for retrieval peer selection.

§request_dispatch: RequestDispatchConfig

Hedged request dispatch policy for retrieval (shared with simulation).