diff sat_templates/templates/bulma/base/base.html @ 355:ff67c700405e

remove websocket legacy code: It is not needed anymore as websocket are not handled with Brython
author Goffi <goffi@goffi.org>
date Thu, 30 Mar 2023 17:00:45 +0200
parents 6a26c8a43d10
children 0e454358ca49
line wrap: on
line diff
--- a/sat_templates/templates/bulma/base/base.html	Fri Nov 25 17:07:26 2022 +0100
+++ b/sat_templates/templates/bulma/base/base.html	Thu Mar 30 17:00:45 2023 +0200
@@ -70,9 +70,8 @@
         <script>var csrf_token = "{{csrf_token}}"; var session_uuid="{{session_uuid}}";</script>
     {% endif %}
 
-    {# FIXME: websocket handling is to be replaced by Brython #}
     {% if websocket is defined %}
-        {{ script.include('websocket', '') }}
+        <script>var ws_url = "{{websocket.url}}"; var ws_token="{{websocket.token}}"; var ws_debug={{websocket.debug}};</script>
     {% endif %}
 
     {{ script.generate_scripts() }}
@@ -81,11 +80,6 @@
         <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content|safe}}</script>
     {% endfor %}
 
-    {# FIXME: websocket handling is to be replaced by Brython #}
-    {% if websocket is defined %}
-        <script>var socket=new WSHandler("{{websocket.url}}", "{{websocket.token}}", {{websocket.debug}});</script>
-    {% endif %}
-
     {% block favicon %}
         <link rel="icon" href="{{media_path}}icons/apps/64/sat.png">
     {% endblock favicon %}