Add SSL flexibility to chat server
This commit is contained in:
parent
349389ce93
commit
6d192cf54d
3 changed files with 12 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue