Constructors
Properties
queries
queries: LRU<Observable<any> | BehaviorSubject<any>> = ... Methods
event
- event(id): Observable<undefined | Event>
Returns Observable<undefined | Event>
events
- events(ids): Observable<Map<string, Event>>
Returns Observable<Map<string, Event>>
mailboxes
- mailboxes(pubkey): Observable<undefined | {
inboxes: string[];
outboxes: string[];
}> Returns Observable<undefined | {
inboxes: string[];
outboxes: string[];
}>
reactions
- reactions(event): Observable<Event[]>
Returns Observable<Event[]>
replaceable
- replaceable(kind, pubkey, d?): Observable<undefined | Event>
Parameters
- kind: number
- pubkey: string
Optional
d: string
Returns Observable<undefined | Event>
replaceableSet
- replaceableSet(pointers): Observable<Map<string, Event>>
Parameters
- pointers: {
identifier?: string;
kind: number;
pubkey: string;
}[]
Returns Observable<Map<string, Event>>
runQuery
- runQuery<T, Args>(queryConstructor): ((...args: Args) => Observable<T>)
Type Parameters
- T extends unknown
- Args extends any[]
Parameters
- queryConstructor: ((...args: Args) => {
key: string;
run: ((events: EventStore, store: QueryStore) => Observable<T>);
})- (...args): {
key: string;
run: ((events: EventStore, store: QueryStore) => Observable<T>);
} Returns {
key: string;
run: ((events: EventStore, store: QueryStore) => Observable<T>);
}
key: string
- (events, store): Observable<T>
Returns Observable<T>
Returns ((...args: Args) => Observable<T>)
- (...args): Observable<T>
Returns Observable<T>
thread
- thread(root): Observable<Thread>
Parameters
- root: string | EventPointer | AddressPointer
Returns Observable<Thread>
timeline
- timeline(filters): Observable<Event[]>
Parameters
- filters: Filter | Filter[]
Returns Observable<Event[]>
Returns a single event