This commit is contained in:
2023-08-24 12:48:16 +03:00
parent 2f31fa3e10
commit 1e59047071
2 changed files with 11 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
{#var user_id = {{ user.id }}#}
ws_url = `ws://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
const chatSocket = new WebSocket(ws_url);
const beep = new Audio('/static/sounds/beep_2.mp3')
</script>
<script src='{% static "js/chat_sockets.js" %}'></script>