Skip to content

Commit

Permalink
APP-6785: Allow different service host from webrtc host (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanlookpotts authored Nov 11, 2024
1 parent e19ed9e commit c33c1d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/robot/dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export interface DialWebRTCConf {
reconnectMaxWait?: number;
reconnectAbortSignal?: { abort: boolean };
// WebRTC
serviceHost?: string;
signalingAddress: string;
iceServers?: ICEServer[];
priority?: number;
Expand All @@ -94,7 +95,7 @@ const dialWebRTC = async (conf: DialWebRTCConf): Promise<RobotClient> => {
// 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 ?? [];

Expand Down

0 comments on commit c33c1d2

Please sign in to comment.