mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
timeout on initial connect only
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
import {
|
||||
BehaviorSubject,
|
||||
concat,
|
||||
from,
|
||||
ignoreElements,
|
||||
Observable,
|
||||
of,
|
||||
repeatWhen,
|
||||
timer,
|
||||
} from 'rxjs'
|
||||
import { concatMap, map, switchMap, take, tap } from 'rxjs/operators'
|
||||
import { from, Observable, of, repeatWhen, timer } from 'rxjs'
|
||||
import { concatMap, map, take } from 'rxjs/operators'
|
||||
import { Store } from '../store'
|
||||
import { Http, Update } from '../types'
|
||||
import { Source } from './source'
|
||||
|
||||
@@ -18,7 +18,7 @@ export class WebsocketSource<T> implements Source<T> {
|
||||
},
|
||||
})
|
||||
|
||||
return stream$.pipe(timeout(60000))
|
||||
return stream$.pipe(timeout({ first: 60000 }))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user