MarfinF commited on
Commit
8b336a8
·
1 Parent(s): 24059b8
Files changed (1) hide show
  1. frontend/index.html +3 -1
frontend/index.html CHANGED
@@ -179,7 +179,9 @@
179
  console.log("location host")
180
  console.log(location.host)
181
  // ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/chat/${username}`);
182
- ws = new WebSocket(`ws://localhost:8000/chat/${username}`);
 
 
183
 
184
  document.getElementById("music-player").addEventListener("play", () => {
185
  musicStatus = "playing"
 
179
  console.log("location host")
180
  console.log(location.host)
181
  // ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/chat/${username}`);
182
+ // ws = new WebSocket(`ws://localhost:8000/chat/${username}`);
183
+
184
+ ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/chat/${username}`);
185
 
186
  document.getElementById("music-player").addEventListener("play", () => {
187
  musicStatus = "playing"