add connection monitoring

This commit is contained in:
Matt Hill
2021-07-01 16:18:26 -06:00
committed by Aiden McClelland
parent 06d8a6f76f
commit 80698e8228
5 changed files with 32 additions and 21 deletions

View File

@@ -1,6 +1,7 @@
import { Observable } from 'rxjs'
import { Update } from '../types'
import { BehaviorSubject, Observable } from 'rxjs'
import { ConnectionStatus, Update } from '../types'
export interface Source<T> {
connectionStatus$: BehaviorSubject<ConnectionStatus>
watch$ (sequence$?: Observable<number>): Observable<Update<T>>
}