diff --git a/client/scripts/network.js b/client/scripts/network.js index 0260bf7..2274343 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -58,7 +58,7 @@ class ServerConnection { // hack to detect if deployment or development environment const protocol = location.protocol.startsWith('https') ? 'wss' : 'ws'; const webrtc = window.isRtcSupported ? '/webrtc' : '/fallback'; - const url = protocol + '://' + location.host + '/server' + webrtc; + const url = protocol + '://' + location.host + location.pathname + '/server' + webrtc; return url; }