diff --git a/app/lib/urlFactory.js b/app/lib/urlFactory.js index ca9c956..8e19b08 100644 --- a/app/lib/urlFactory.js +++ b/app/lib/urlFactory.js @@ -1,7 +1,8 @@ export function getProtooUrl(peerName, roomId) { const hostname = window.location.hostname; - const url = `wss://${hostname}:3443/?peerName=${peerName}&roomId=${roomId}`; + const port = window.location.port; + const url = `wss://${hostname}:${port}/?peerName=${peerName}&roomId=${roomId}`; return url; }