root 2 years ago
parent
commit
e17a9dba95
1 changed files with 1 additions and 1 deletions
  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);