From e5ff6db780363a974ecddedded1563d86f81a203 Mon Sep 17 00:00:00 2001 From: Stefan Otto Date: Fri, 29 Jun 2018 14:30:26 +0200 Subject: [PATCH] Fix: websocket signaling take now same port as webserver --- app/lib/urlFactory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }