calling: make hostname optional in IceServer type

This commit is contained in:
adel-signal 2024-05-01 16:10:33 -07:00 committed by GitHub
parent 0999df2d6e
commit 455b616cb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -2691,7 +2691,7 @@ export class CallingClass {
: // proritize ice servers with IPs to avoid DNS
[
{
hostname: iceServer.hostname,
hostname: iceServer.hostname ?? '',
username: iceServer.username,
password: iceServer.password,
urls: (iceServer.urlsWithIps ?? []).slice(),

View file

@ -787,9 +787,9 @@ export type GetAccountForUsernameResultType = z.infer<
export type GetIceServersResultType = Readonly<{
username: string;
password: string;
urls: ReadonlyArray<string>;
urlsWithIps: ReadonlyArray<string>;
hostname: string;
urls?: ReadonlyArray<string>;
urlsWithIps?: ReadonlyArray<string>;
hostname?: string;
}>;
export type GetDevicesResultType = ReadonlyArray<