1
0
Rodja Trappe 2 жил өмнө
parent
commit
6264fad410

+ 1 - 1
nicegui/templates/index.html

@@ -86,7 +86,7 @@
         },
         mounted() {
           const query = { client_id: {{ client_id }} };
-          window.socket = io("{{ socket_address }}", { path: "/ws/socket.io", query });//io("{{ prefix | safe }}/ws/socket.io", { query });
+          window.socket = io("{{ socket_address }}", { path: "/ws/socket.io", query: query });
           window.socket.on("update", (msg) => {
             Object.entries(msg.elements).forEach(([id, element]) => this.elements[element.id] = element);
           });