def update_status(type, state)
      @status[type] = state
      (@status_callbacks || []).each do |callback|
        begin
          callback.call(type, state)
        rescue RuntimeError => e
          ErrorTracker.log(self, "Failed status callback", e, nil, :caller)
        end
      end
      @status
    end
def update_status(type, state)
      @status[type] = state
      (@status_callbacks || []).each do |callback|
        begin
          callback.call(type, state)
        rescue RuntimeError => e
          ErrorTracker.log(self, "Failed status callback", e, nil, :caller)
        end
      end
      @status
    end
Forward status updates via callbacks

 @param [Symbol] type of client: :auth, :api, or :router
 @param [Symbol] state of client

 @return [Hash] status of various clients