refactor: Remove hardcoded values
All checks were successful
Queue Release Build / prepare (push) Successful in 2m28s
Deploy Web Apps / deploy (push) Successful in 7m58s
Queue Release Build / build-linux (push) Successful in 46m59s
Queue Release Build / build-windows (push) Successful in 26m2s
Queue Release Build / finalize (push) Successful in 23s
All checks were successful
Queue Release Build / prepare (push) Successful in 2m28s
Deploy Web Apps / deploy (push) Successful in 7m58s
Queue Release Build / build-linux (push) Successful in 46m59s
Queue Release Build / build-windows (push) Successful in 26m2s
Queue Release Build / finalize (push) Successful in 23s
This commit is contained in:
@@ -4,8 +4,8 @@ import {
|
||||
computed,
|
||||
type Signal
|
||||
} from '@angular/core';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { STORAGE_KEY_ICE_SERVERS } from '../../core/constants';
|
||||
import { ICE_SERVERS } from './realtime.constants';
|
||||
|
||||
export interface IceServerEntry {
|
||||
id: string;
|
||||
@@ -15,7 +15,7 @@ export interface IceServerEntry {
|
||||
credential?: string;
|
||||
}
|
||||
|
||||
const DEFAULT_ENTRIES: IceServerEntry[] = ICE_SERVERS.map((server, index) => ({
|
||||
const DEFAULT_ENTRIES: IceServerEntry[] = environment.realtime.defaultIceServers.map((server, index) => ({
|
||||
id: `default-stun-${index}`,
|
||||
type: 'stun' as const,
|
||||
urls: Array.isArray(server.urls) ? server.urls[0] : server.urls
|
||||
|
||||
@@ -5,14 +5,6 @@ import type { LatencyProfile } from '../../shared-kernel';
|
||||
* Centralised here so nothing is hard-coded inline.
|
||||
*/
|
||||
|
||||
export const ICE_SERVERS: RTCIceServer[] = [
|
||||
{ urls: 'stun:stun.l.google.com:19302' },
|
||||
{ urls: 'stun:stun1.l.google.com:19302' },
|
||||
{ urls: 'stun:stun2.l.google.com:19302' },
|
||||
{ urls: 'stun:stun3.l.google.com:19302' },
|
||||
{ urls: 'stun:stun4.l.google.com:19302' }
|
||||
];
|
||||
|
||||
/** Base delay (ms) for exponential backoff on signaling reconnect */
|
||||
export const SIGNALING_RECONNECT_BASE_DELAY_MS = 1_000;
|
||||
/** Maximum delay (ms) between signaling reconnect attempts */
|
||||
|
||||
Reference in New Issue
Block a user