Calling: Add cache for relay server requests

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
Jim Gustafson
2025-03-27 12:55:10 -07:00
committed by GitHub
parent 38d5e50175
commit e22c700237
3 changed files with 77 additions and 29 deletions

View File

@@ -208,3 +208,15 @@ export enum ScreenShareStatus {
Reconnecting = 'Reconnecting',
Disconnected = 'Disconnected',
}
export type IceServerType = {
username?: string;
password?: string;
hostname?: string;
urls: Array<string>;
};
export type IceServerCacheType = {
iceServers: Array<IceServerType>;
expirationTimestamp: number;
};