0.12.6 chat fixes

This commit is contained in:
SDE
2024-01-26 17:09:42 +03:00
parent 91751574cc
commit 03f9a836e6
3 changed files with 23 additions and 8 deletions

View File

@@ -28,7 +28,11 @@
<script>
{#var user_id = {{ user.id }}#}
ws_url = `ws://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
{% if prod %}
ws_url = `wss://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
{% else %}
ws_url = `ws://{% get_ws_address %}/ws/socket-server/?user_id={{ user.id }}`;
{% endif %}
var chatSocket;
init_ws()
const beep = new Audio('/static/sounds/beep_2.mp3')