rtkbase icon indicating copy to clipboard operation
rtkbase copied to clipboard

Socket messaging improvements

Open GwnDaan opened this issue 3 years ago • 0 comments

Small QOL improvement.

  • Only sent system informations when there is a client connected.
  • Makes UI more responsive by defaulting emit_pingback to True, 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
          """
    

GwnDaan avatar Jun 21 '22 20:06 GwnDaan