mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
improve comment
This commit is contained in:
@@ -124,9 +124,10 @@ const FOCI_WK_KEY = "org.matrix.msc4143.rtc_foci";
|
|||||||
* validating auth against the service to ensure it's correct.
|
* validating auth against the service to ensure it's correct.
|
||||||
* Prefers in order:
|
* Prefers in order:
|
||||||
*
|
*
|
||||||
* 1. The transports returned via the homeserver.
|
* 1. The `urlFromDevSettings` value. If this cannot be validated, the function will throw.
|
||||||
* 2. The transports returned via .well-known.
|
* 2. The transports returned via the homeserver.
|
||||||
* 3. The transport configured in Element Call's config.
|
* 3. The transports returned via .well-known.
|
||||||
|
* 4. The transport configured in Element Call's config.
|
||||||
*
|
*
|
||||||
* @param client The authenticated Matrix client for the current user
|
* @param client The authenticated Matrix client for the current user
|
||||||
* @param roomId The ID of the room to be connected to.
|
* @param roomId The ID of the room to be connected to.
|
||||||
@@ -143,6 +144,14 @@ async function makeTransport(
|
|||||||
logger.trace("Searching for a preferred transport");
|
logger.trace("Searching for a preferred transport");
|
||||||
const livekitAlias = roomId;
|
const livekitAlias = roomId;
|
||||||
|
|
||||||
|
// We will call `getSFUConfigWithOpenID` once per transport here as it's our
|
||||||
|
// only mechanism of valiation. This means we will also ask the
|
||||||
|
// homeserver for a OpenID token a few times. Since OpenID tokens are single
|
||||||
|
// use we don't want to risk any issues by re-using a token.
|
||||||
|
//
|
||||||
|
// If the OpenID request were to fail then it's acceptable for us to fail
|
||||||
|
// this function early, as we assume the homeserver has got some problems.
|
||||||
|
|
||||||
// DEVTOOL: Highest priority: Load from devtool setting
|
// DEVTOOL: Highest priority: Load from devtool setting
|
||||||
if (urlFromDevSettings !== null) {
|
if (urlFromDevSettings !== null) {
|
||||||
logger.info("Using LiveKit transport from dev tools: ", urlFromDevSettings);
|
logger.info("Using LiveKit transport from dev tools: ", urlFromDevSettings);
|
||||||
|
|||||||
Reference in New Issue
Block a user