Ok it's not really complicated indeed
Though some prefer to use a Cron system to ping their servers every now and then (like every minute) and so the php file only fetchs the result. It avoids a lot of socket "requests" on the server and the answer of the php query is immediate so it does not slow down your website display.
Downside is that you have the servers state from one minute ago, a pro is that with this you can have your website on a server and your osRose servers on another (the other way too in fact ).