def stats(reset = false)
      stats = {}
      @stats.each { |k, v| stats[k] = v.all }
      reset_stats if reset
      stats
    end
def stats(reset = false)
      stats = {}
      @stats.each { |k, v| stats[k] = v.all }
      reset_stats if reset
      stats
    end
Current statistics for this client

 @param [Boolean] reset the statistics after getting the current ones

 @return [Hash] current statistics
   [Hash, NilClass] "state" Activity stats or nil if none