Constructors
Properties
Methods
add
- add(event, fromRelay?): Event
Parameters
- event: Event
Optional
fromRelay: string
Returns Event
event
- event(uid): Observable<undefined | Event>
Returns Observable<undefined | Event>
events
- events(uids): Observable<Map<string, Event>>
Returns Observable<Map<string, Event>>
getAll
- getAll(filters): Set<Event>
Returns Set<Event>
getEvent
- getEvent(uid): undefined | Event
Returns undefined | Event
getReplaceable
- getReplaceable(kind, pubkey, d?): undefined | Event
Parameters
- kind: number
- pubkey: string
Optional
d: string
Returns undefined | Event
hasEvent
- hasEvent(uid): undefined | Event
Returns undefined | Event
hasReplaceable
- hasReplaceable(kind, pubkey, d?): boolean
Parameters
- kind: number
- pubkey: string
Optional
d: string
Returns boolean
replaceable
- replaceable(kind, pubkey, d?): Observable<undefined | Event>
Parameters
- kind: number
- pubkey: string
Optional
d: string
Returns Observable<undefined | Event>
stream
- stream(filters): Observable<Event>
Returns Observable<Event>
timeline
- timeline(filters): Observable<Event[]>
Returns Observable<Event[]>
update
- update(event): Event
Returns Event
Adds an event to the database