Skip to main content

serve

Function serve 

Source
pub async fn serve<R: AsyncRead + Unpin, W: AsyncWrite + Unpin>(
    read: R,
    write: W,
    ingress: Arc<IngressSocket>,
    handle: WebRtcHandle,
    stun: Vec<SocketAddr>,
    bind: Option<SocketAddr>,
) -> Result<(), String>
Expand description

Run on the app’s existing tokio runtime, never on its capability courier. stun contains advertised public-member STUN socket addresses (no TURN).