Skip to main content

ice_credentials

Function ice_credentials 

Source
fn ice_credentials<Keep>(
    servers: Vec<IceServer>,
    ttl: Duration,
    keep: Keep,
) -> Result<Response>
where Keep: Fn(&str) -> bool,
Expand description

Folds WebRTC ICE servers into the one username and password a Matrix client takes.

The first entry carrying credentials supplies them, and only the URIs of entries carrying the same credentials and accepted by keep remain. An answer with no entry carrying credentials is an error.