simplify websocket opening and response types from BE

This commit is contained in:
Matt Hill
2022-08-15 16:59:05 -06:00
parent ebbb347128
commit 4aadfed740
5 changed files with 27 additions and 82 deletions

View File

@@ -1,8 +1,7 @@
import { Observable } from 'rxjs'
import { Store } from '../store'
import { Update } from '../types'
import { RPCResponse } from './ws-source'
export interface Source<T> {
watch$(store?: Store<T>): Observable<RPCResponse<Update<T>>>
watch$(store?: Store<T>): Observable<Update<T>>
}