0👍
It is actually the other way round if you want to read the endpoint at a specific interval repeatedly
import {interval} from 'rxjs'
interval(5000).pipe(switchMap(()=>this.DataService.Data$)).subscribe(console.log)
Source:stackexchange.com
0👍
It is actually the other way round if you want to read the endpoint at a specific interval repeatedly
import {interval} from 'rxjs'
interval(5000).pipe(switchMap(()=>this.DataService.Data$)).subscribe(console.log)