You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
331 B
12 lines
331 B
let protooPort = 4443;
|
|
|
|
if (window.location.hostname === 'test.mediasoup.org')
|
|
protooPort = 4444;
|
|
|
|
export function getProtooUrl({ roomId, peerId, consumerReplicas })
|
|
{
|
|
const hostname = window.location.hostname;
|
|
|
|
return `wss://${hostname}:${protooPort}/?roomId=${roomId}&peerId=${peerId}&consumerReplicas=${consumerReplicas}`;
|
|
}
|