rohan13 commited on
Commit
19d5436
1 Parent(s): 39bf5ed

socket connection path

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('http://' + document.domain + ':' + location.port);
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('/');
13
 
14
  // Function to send message to Flask-SocketIO app
15
  function sendMessage(message) {