Run code every x miliseconds
setInterval(() => this.getWhatsUp, 10000); // to cancel var anyName = setInterval(() => this.getWhatsUp, 10000); clearInterval(anyName);