This problem has been solved for a long time.   You can use long polling, websockets, server sent events or some of the older hacks that preceded those mechanisms.   Heck, you don&#x27;t have to use HTTP, you can just use a long lived TCP connection.