End Goal: We want our CPU meter on our website to update live as we retrieve CPU % from C++ client via sockets.
My friend and I didn't exactly know which to use to accomplish this task, have AJAX or Sockets via PHP to request the CPU usage from my C++ application and update the meter on the website with whatever value is received from the client.
Is there any other way to update the website in real time after it's been already loaded other than AJAX? If not, should the website request the information from the client via sockets and then store it to a variable and pass to AJAX to update the element?
Your help is highly appreciated :) We are working on a energy efficiency project for school. (I'm in school for C++, and he is in for web development)