I want to display information about Geth, specifically
eth.getBlock("latest").number, in a Node.Js GUI. However, I'm not sure how to keep it updated. One solution is to request the information from the browser once every 5 seconds or so, but it doesn't look very elegant. Does web3 provide an event or something like that so that socket.io calls the clients with the updated information whenever a new block is downloaded?