yasserrmd commited on
Commit
32261d5
·
verified ·
1 Parent(s): 8073ead

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +1 -1
static/index.html CHANGED
@@ -384,7 +384,7 @@ document.addEventListener('DOMContentLoaded', () => {
384
  function connectWebSocket() {
385
 
386
  const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
387
- ws = new WebSocket(`${protocol}//${window.location.host}/ws/${endpoint}`);
388
 
389
  ws.onopen = () => {
390
  addMessage('Connected to the server.', 'system');
 
384
  function connectWebSocket() {
385
 
386
  const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
387
+ ws = new WebSocket(`${protocol}//${window.location.host}/ws`);
388
 
389
  ws.onopen = () => {
390
  addMessage('Connected to the server.', 'system');