Skip to content

Commit c33c1d2

Browse files
APP-6785: Allow different service host from webrtc host (#411)
1 parent e19ed9e commit c33c1d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/robot/dial.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export interface DialWebRTCConf {
8181
reconnectMaxWait?: number;
8282
reconnectAbortSignal?: { abort: boolean };
8383
// WebRTC
84+
serviceHost?: string;
8485
signalingAddress: string;
8586
iceServers?: ICEServer[];
8687
priority?: number;
@@ -94,7 +95,7 @@ const dialWebRTC = async (conf: DialWebRTCConf): Promise<RobotClient> => {
9495
// eslint-disable-next-line no-console
9596
console.debug('dialing via WebRTC...');
9697

97-
const impliedURL = conf.host;
98+
const impliedURL = conf.serviceHost ?? conf.host;
9899
const { signalingAddress } = conf;
99100
const iceServers = conf.iceServers ?? [];
100101

0 commit comments

Comments
 (0)