b) If you need to use the managed approach, then the only way you have is through polling: making a request every few seconds to see if something has changed. In the archimedes lab, for example (see code here
), it's every few seconds calling ALLINFO:ball1:ball2, and the command checks the status and returns it to the user. If you do it fast enough, the effect is similar. However, it's less efficient and takes much longer than using other techniques as websockets or HTTP Long polling
(where you send messages continuously, and the server sleeps for few seconds until there is a change to be submitted to the user); both are not supported unfortunately in the managed approach.