Integrates docker.

This commit is contained in:
pa7ryk 2019-06-13 16:47:25 +02:00
parent 993b484396
commit f418dc26b8
5 changed files with 53 additions and 74 deletions

View file

@ -54,9 +54,8 @@ class ServerConnection {
_endpoint() {
// hack to detect if deployment or development environment
const protocol = location.protocol.startsWith('https') ? 'wss' : 'ws';
const host = location.hostname.startsWith('localhost') ? 'localhost:3000' : (location.host + '/server');
const webrtc = window.isRtcSupported ? '/webrtc' : '/fallback';
const url = protocol + '://' + host + webrtc;
const url = protocol + '://' + location.host + '/server' + webrtc;
return url;
}