kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
rodzic
f641be9d3e
commit
3a77bf0c5d
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
||||
#
|
||||
|
|
Ładowanie…
Reference in New Issue