Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +1 -1
static/script.js
CHANGED
|
@@ -47,7 +47,7 @@ function stopProcess(message) {
|
|
| 47 |
//This Code is used to Communicate b/w Client & Server via SOCKETIO
|
| 48 |
//var socket = io.connect('http://127.0.0.1:5000/');
|
| 49 |
|
| 50 |
-
var socket = io.connect();
|
| 51 |
|
| 52 |
// Variabel untuk menyimpan kata-kata berturut-turut
|
| 53 |
let consecutiveWords = [];
|
|
|
|
| 47 |
//This Code is used to Communicate b/w Client & Server via SOCKETIO
|
| 48 |
//var socket = io.connect('http://127.0.0.1:5000/');
|
| 49 |
|
| 50 |
+
var socket = io.connect('https://' + document.domain + ':' + location.port);
|
| 51 |
|
| 52 |
// Variabel untuk menyimpan kata-kata berturut-turut
|
| 53 |
let consecutiveWords = [];
|