I believe that web sockets may help you. However, my knowledge on web sockets is limited, for it is a dark and mysterious magic.
If you could make a variable that stores whatever info you are looking at, you could grab new info every X seconds, and compare the two to check for change.
i.e.,
timerCheckWeb 0 X CheckTheWeb
alias CheckTheWeb {
set %newInfo {web socket hullabaloo}
if (%newInfo != %oldInfo) {
echo New Info has Arrived: %newInfo
set %oldInfo %newInfo
}
}
This is how I would personally structure it, but as I said at the beginning, I have no idea how web sockets work. Best of luck to you, though. I have thoroughly enjoyed scripting in MSL.
I hope this helps!