seantrant
8/2/2017 - 8:34 AM

Run code every x miliseconds

Run code every x miliseconds

setInterval(() => this.getWhatsUp, 10000);

// to cancel

var anyName = setInterval(() => this.getWhatsUp, 10000); 

clearInterval(anyName);