diff --git a/src/zhurnal/app.py b/src/zhurnal/app.py index dbe5942..9c6679e 100644 --- a/src/zhurnal/app.py +++ b/src/zhurnal/app.py @@ -139,7 +139,7 @@ index_html = """ } document.addEventListener("DOMContentLoaded", () => { - let url = (window.location.protocol == 'http' ? 'ws://': 'ws:///') + window.location.host + "/ws" + let url = (window.location.protocol == 'http' ? 'ws://': 'wss://') + window.location.host + "/ws" const ws = new WebSocket(url); const messagesDiv = document.getElementById("messages"); ws.onmessage = (event) => {