rtkbase
rtkbase copied to clipboard
Socket messaging improvements
Small QOL improvement.
- Only sent system informations when there is a client connected.
- Makes UI more responsive by defaulting
emit_pingbacktoTrue, so that the services status get sent back to the client immediate instead of waiting on the manager function:@socketio.on("get services status", namespace="/test") - def getServicesStatus(emit_pingback=False): + def getServicesStatus(emit_pingback=True): """ Get the status of services listed in services_list (services_list is global) + :param emit_pingback: whether or not the services status is sent to clients + (defaults to true as the socketio.on() should receive back the information) + :return The gathered services status list """