Almaatla commited on
Commit
0242cbc
·
verified ·
1 Parent(s): c4a323e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('ws://' + window.location.host + '/ws');
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>`;