diff --git a/frontend/static/js/api/chat/Notice.js b/frontend/static/js/api/chat/Notice.js index d02de5a..9448e2a 100644 --- a/frontend/static/js/api/chat/Notice.js +++ b/frontend/static/js/api/chat/Notice.js @@ -16,6 +16,7 @@ class Notice { } async connect() { + return let url = `${window.location.protocol[4] === 's' ? 'wss' : 'ws'}://${window.location.host}/ws/chat/notice`; this.chatSocket = new WebSocket(url);