timeout on initial connect only

This commit is contained in:
Matt Hill
2022-08-10 15:51:11 -06:00
parent 001360d09a
commit ebbb347128
2 changed files with 3 additions and 12 deletions

View File

@@ -1,14 +1,5 @@
import { import { from, Observable, of, repeatWhen, timer } from 'rxjs'
BehaviorSubject, import { concatMap, map, take } from 'rxjs/operators'
concat,
from,
ignoreElements,
Observable,
of,
repeatWhen,
timer,
} from 'rxjs'
import { concatMap, map, switchMap, take, tap } from 'rxjs/operators'
import { Store } from '../store' import { Store } from '../store'
import { Http, Update } from '../types' import { Http, Update } from '../types'
import { Source } from './source' import { Source } from './source'

View File

@@ -18,7 +18,7 @@ export class WebsocketSource<T> implements Source<T> {
}, },
}) })
return stream$.pipe(timeout(60000)) return stream$.pipe(timeout({ first: 60000 }))
} }
} }