Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ async def get():
|
|
| 28 |
<input id="msg" type="text">
|
| 29 |
<button onclick="send()">Send</button>
|
| 30 |
<script>
|
| 31 |
-
const ws = new WebSocket('
|
| 32 |
ws.onmessage = e => {
|
| 33 |
document.getElementById('chat').innerHTML +=
|
| 34 |
`<div>${e.data}</div>`;
|
|
|
|
| 28 |
<input id="msg" type="text">
|
| 29 |
<button onclick="send()">Send</button>
|
| 30 |
<script>
|
| 31 |
+
const ws = new WebSocket('wss://' + window.location.host + '/ws');
|
| 32 |
ws.onmessage = e => {
|
| 33 |
document.getElementById('chat').innerHTML +=
|
| 34 |
`<div>${e.data}</div>`;
|