cahya commited on
Commit
1f37c8e
1 Parent(s): ade2333

fixed the ws

Browse files
Files changed (1) hide show
  1. app/websocket.py +2 -2
app/websocket.py CHANGED
@@ -20,8 +20,8 @@ html = """
20
  <ul id='messages'>
21
  </ul>
22
  <script>
23
- var ws = new WebSocket("ws://localhost:8000/api/ws");
24
- //var ws = new WebSocket("wss://cahya-websocket.hf.space/ws");
25
  ws.onmessage = function(event) {
26
  var messages = document.getElementById('messages')
27
  var message = document.createElement('li')
 
20
  <ul id='messages'>
21
  </ul>
22
  <script>
23
+ // var ws = new WebSocket("ws://localhost:8000/api/ws");
24
+ var ws = new WebSocket("https://cahya-proxy.hf.space/api/ws");
25
  ws.onmessage = function(event) {
26
  var messages = document.getElementById('messages')
27
  var message = document.createElement('li')