EL GHAFRAOUI AYOUB commited on
Commit
2dd1f98
·
1 Parent(s): 255138f
Files changed (1) hide show
  1. static/script.js +2 -2
static/script.js CHANGED
@@ -73,8 +73,8 @@ function stopProcess(message) {
73
 
74
 
75
  //This Code is used to Communicate b/w Client & Server via SOCKETIO
76
- var socket = io.connect('http://0.0.0.0:7860/');
77
-
78
  // Variabel untuk menyimpan kata-kata berturut-turut
79
  let consecutiveWords = [];
80
  let finalSentence = "";
 
73
 
74
 
75
  //This Code is used to Communicate b/w Client & Server via SOCKETIO
76
+ //var socket = io.connect('http://0.0.0.0:7860/');
77
+ var socket = io.connect('https://' + document.domain + ':' + location.port);
78
  // Variabel untuk menyimpan kata-kata berturut-turut
79
  let consecutiveWords = [];
80
  let finalSentence = "";