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.

15 lines
328 B

let protooPort = 4443;
const hostname = process.env.HOSTNAME || 'test.mediasoup.org';
if (hostname === 'test.mediasoup.org')
protooPort = 4444;
export function getProtooUrl(
{ roomId, peerId }:
{ roomId: string; peerId: string; }
): string
{
return `wss://${hostname}:${protooPort}/?roomId=${roomId}&peerId=${peerId}`;
}