Add SSL flexibility to chat server

This commit is contained in:
cuom1999 2020-10-26 14:39:47 -05:00
parent 349389ce93
commit 6d192cf54d
3 changed files with 12 additions and 3 deletions

View file

@ -5,9 +5,8 @@
{% block js_media %}
<script type="text/javascript">
var chatSocket = new WebSocket(
'ws://' + window.location.host +
'/ws/chat/');
// change ws to wss if using HTTPS
var chatSocket = new WebSocket( "{{ws_address}}" );
</script>
<script type="text/javascript" src="{{ static('mathjax_config.js') }}"></script>
<script type="text/javascript"