hosts property

List<String> hosts
final

Host patterns this rule applies to.

Use exact hosts like example.livekit.cloud, single-label wildcard hosts like *.livekit.cloud, multi-label wildcard hosts like **.livekit.cloud, or leave this empty to apply the rule to all SDK-owned TLS connections. *.livekit.cloud matches project.livekit.cloud, but not a.b.livekit.cloud. **.livekit.cloud matches both.

Hosts that match no rule are connected with platform trust only and a warning is logged. Keep in mind the SDK also connects to hosts you did not write yourself: LiveKit Cloud region failover uses server-provided regional hostnames like project.region.production.livekit.cloud, which carry more labels than your project URL. Use a multi-label wildcard like **.livekit.cloud so pinning also covers those hosts.

Implementation

final List<String> hosts;