I used to work at a SaaS startup that used this extensively. Here's a demo of a remote command line tool we made - React on the frontend communicating with C++ agents on desktops. The desktop agents could also publish events that the web could subscribe to and show activity on a real-time feed / dashboard.