Update the client side from the server without refreshing the browser window. ex: think there is a variable count=0 and it updates every seconds by setting interval, but it updates in server without reflecting the change in browser.
let count=0
app.get('/', function(req, res){
setInterval(() => {
count+=1;
}, 1000);
res.json(count); //I need to update UI asynchronously.
});