This commit is contained in:
2023-08-24 15:18:58 +03:00
parent 40fc623123
commit fa360267a0
3 changed files with 44 additions and 4 deletions

View File

@@ -13,7 +13,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);
let chatSocket = new WebSocket(ws_url);
const beep = new Audio('/static/sounds/beep_2.mp3')
</script>