Type alias Publisher

Publisher: ((event) => Promise<void>)

A simple method responsible for publish a signer nostr event to relays

Type declaration

    • (event): Promise<void>
    • Parameters

      • event: SignedEvent

      Returns Promise<void>

Example

function publisher(event){
const relay = Relay.connect("wss://relay.example.com");

relay.publish(event)
}

Generated using TypeDoc