fixed the ws
Browse files- 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 |
-
|
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')
|