Signed-off-by: Ilias Daradimos <judgedrid@gmail.com>
pull/789/head
Ilias Daradimos 2023-07-26 15:12:41 +00:00
rodzic f641be9d3e
commit 3a77bf0c5d
3 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -45,8 +45,10 @@
quickLaunches = false;
quickLandings = false;
var socket_path = "{{ url_for("static", filename="") }}".replace('static/', 'socket.io')
var socket = io.connect({'path': socket_path});
namespace = '/update_status';
var socket_path = "{{ url_for("static", filename="") }}".replace('static/', 'socket.io')
var socket = io.connect(location.origin+namespace, {'path': socket_path});
$.ajax({
// Get station.cfg file.

Wyświetl plik

@ -99,8 +99,9 @@
$( document ).ready(function() {
namespace = '/update_status';
var socket_path = "{{ url_for("static", filename="") }}".replace('static/', 'socket.io')
var socket = io.connect({'path': socket_path});
var socket = io.connect(location.origin+namespace, {'path': socket_path});
$.ajax({
// Get station.cfg file.

Wyświetl plik

@ -71,7 +71,7 @@ flask_telemetry_store = {}
#
def flask_emit_event(event_name="none", data={}):
""" Emit a socketio event to any clients. """
socketio.emit(event_name, data, namespace="update_status")
socketio.emit(event_name, data, namespace="/update_status")
#