rohan13 commited on
Commit
41c8295
1 Parent(s): 19d5436

trying with https

Browse files
Files changed (1) hide show
  1. static/chatbot.js +1 -1
static/chatbot.js CHANGED
@@ -9,7 +9,7 @@ $(document).ready(function() {
9
  });
10
 
11
  // Initialize SocketIO connection
12
- var socket = io.connect('/');
13
 
14
  // Function to send message to Flask-SocketIO app
15
  function sendMessage(message) {
 
9
  });
10
 
11
  // Initialize SocketIO connection
12
+ var socket = io.connect('https://' + document.domain + ':' + location.port);
13
 
14
  // Function to send message to Flask-SocketIO app
15
  function sendMessage(message) {