Type Alias NostrPublishMethod
NostrPublishMethod: (
relays: string[],
event: NostrEvent,
) => Promise<any> | Subscribable<any>
Type declaration
- (relays: string[], event: NostrEvent): Promise<any> | Subscribable<any>
Parameters
- relays: string[]
- event: NostrEvent
Returns Promise<any> | Subscribable<any>
A method used for publishing an event, can return a Promise that completes when published or an Observable that completes when published