I am currently working on a simple web app (html + js) that displays weather + weather alerts. I am trying to make it so that when a new alert gets issued, the app will play a sound and immediately display the alert. My problem is that the only way of detecting when new alerts get issued is by constantly making lots of HTTP calls to an api that lists current alerts and detecting when something is new. I am wondering if there is a better way to do this, hopefully by only having to connect to a server once.