Skip to main content

relay_policy

Function relay_policy 

Source
pub fn relay_policy() -> impl Policy<EndpointId> + Clone
Expand description

Returns the media relay’s default policy for iroh clients.

It admits every client to read the whole cluster and to publish its own live/ broadcasts and its room broadcasts, at the paths that name its endpoint id. Use it as the fallback of a Verify to let a token widen what a client may publish.