From f87c5e99800dcf18d0491ab941d0324350f8ec01 Mon Sep 17 00:00:00 2001 From: 1k2k <14908307+1k2k@users.noreply.github.com> Date: Tue, 26 Jun 2018 18:11:04 +0200 Subject: [PATCH] Force SSL, WSS --- src/web_app/js/signalingchannel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web_app/js/signalingchannel.js b/src/web_app/js/signalingchannel.js index 6f73da329..17bf0a477 100644 --- a/src/web_app/js/signalingchannel.js +++ b/src/web_app/js/signalingchannel.js @@ -15,8 +15,8 @@ // This class implements a signaling channel based on WebSocket. var SignalingChannel = function(wssUrl, wssPostUrl) { - this.wssUrl_ = wssUrl; - this.wssPostUrl_ = wssPostUrl; + this.wssUrl_ = wssUrl.replace('ws:', 'wss:'); + this.wssPostUrl_ = wssPostUrl.replace('http:', 'https:'); this.roomId_ = null; this.clientId_ = null; this.websocket_ = null;