pub async fn network_broker_start(
node: NodeConfig,
connection: ConnectionConfig,
) -> Result<Broker<NetworkMessage>, NetworkSetupError>Expand description
Starts a new broker::Broker<NetworkMessage> with a given node- and connection-configuration.
This returns a raw broker which is mostly suited to connect to other brokers.
If you need an easier access to the WebRTC network, use network_start, which returns
a structure with a more user-friendly API.
ยงExample
async fn start_network() -> Result<(), NetworkSetupError>{
let net = network_broker_start();
}