dg9vh / MMDVMHost-Dashboard

Dashboard for MMDVMHost (by G4KLX)
Creative Commons Zero v1.0 Universal
60 stars 45 forks source link

Move to websockets instead of polling #155

Closed dh3wr closed 2 years ago

dh3wr commented 7 years ago

I see with 2 instances of the Dashboard open in Browser 45 % CPU load on a Pi3 from the apache. I think it's from the 1 sec. polling ajax. I know it's not that easy but maybe switching to websockets would be cool to have event triggered updates?

dg9vh commented 7 years ago

actually investigating how to do this - never worked with websockets before :-)

dh3wr commented 7 years ago

Checkout https://github.com/dh3wr/RasPagerDigi/tree/master/software/Simple-WebSocket-Server . You need in thsi case a C++ Programm providing the information via Websocket to a JS-enabled website.