root hace 2 años
padre
commit
e17a9dba95
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/chess.js

+ 1 - 1
js/chess.js

@@ -323,7 +323,7 @@ var createSocket = function () {
     if (socket) {
         socket.close();
     }
-    var url = 'ws://' + window.location.host + '/ws/chess';
+    var url = 'wss://' + window.location.host + '/ws/chess';
     socket = new WebSocket(url);
     socket.onopen = function () {
         console.log('connected to ' + url);