diff --git a/app/js/websocket.js b/app/js/websocket.js index 2b5886e..3d51647 100644 --- a/app/js/websocket.js +++ b/app/js/websocket.js @@ -4,12 +4,12 @@ const WEBSOCKET = function (model) { const useUrl = 0; if ('https:' === document.location.protocol) { - wsUrl = `wss://${ wsUrl[useUrl] }`; + wsUrl = `wss://${ wsUrl[1] }`; wsPort = ''; } else { // wsUrl = 'ws://localhost:3001'; - wsUrl = `ws://${ wsUrl[useUrl] }`; + wsUrl = `ws://${ wsUrl[0] }`; wsPort = '9000'; }