From c33c1d292e08e653b6c2a537a9fe5d27bc5e3caf Mon Sep 17 00:00:00 2001 From: Ethan Look-Potts Date: Mon, 11 Nov 2024 09:43:08 -0500 Subject: [PATCH] APP-6785: Allow different service host from webrtc host (#411) --- src/robot/dial.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/robot/dial.ts b/src/robot/dial.ts index b8cf27c48..cae2f42f2 100644 --- a/src/robot/dial.ts +++ b/src/robot/dial.ts @@ -81,6 +81,7 @@ export interface DialWebRTCConf { reconnectMaxWait?: number; reconnectAbortSignal?: { abort: boolean }; // WebRTC + serviceHost?: string; signalingAddress: string; iceServers?: ICEServer[]; priority?: number; @@ -94,7 +95,7 @@ const dialWebRTC = async (conf: DialWebRTCConf): Promise => { // eslint-disable-next-line no-console console.debug('dialing via WebRTC...'); - const impliedURL = conf.host; + const impliedURL = conf.serviceHost ?? conf.host; const { signalingAddress } = conf; const iceServers = conf.iceServers ?? [];