mirror of
https://github.com/edumeet/edumeet.git
synced 2026-07-25 20:03:55 +00:00
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
export function getSignalingUrl(peerId, roomId)
|
|
{
|
|
const port =
|
|
process.env.NODE_ENV !== 'production' ?
|
|
window.config.developmentPort
|
|
:
|
|
window.config.productionPort;
|
|
|
|
const url = `wss://${window.location.hostname}:${port}/?peerId=${peerId}&roomId=${roomId}`;
|
|
|
|
return url;
|
|
}
|