pub async fn admit(
admissions: Admissions,
pulls: Option<Pulls>,
keys: Option<Keys>,
)Expand description
Answers the media relay’s admissions until the media relay drops its auth.
A session gets browser_grant for its path. With keys, moq-auth’s
reference policy decides it instead: a session that presents a JWT gets
what the token grants until it expires, and one without a token gets the
same public rule. The policy reads the key file again when it changes, so
a rotated key takes effect without a restart.
A session whose path names a ticket reads the ticket’s broadcast at that
name, and is decided at the broadcast’s path, so its token must reach that
path. With pulls set it holds a pull of the broadcast while it runs, if
the pulls’ Access lets it pull and their
Limits have room. A session that may not pull is refused.
run calls it. It is public for a binary that embeds the media relay with a
moq-relay of its own, and for the tests.