AppleSauce
    Preparing search index...

    Type Alias NostrConnectProviderOptions

    NostrConnectProviderOptions: ProviderAuthorization & NostrConnectionMethodsOptions & {
        onClientConnect?: (client: string) => any;
        onClientDisconnect?: (client: string) => void;
        relays: string[];
        secret?: string;
        signer?: ISigner;
        upstream: ISigner;
    }

    Type declaration

    • OptionalonClientConnect?: (client: string) => any

      Callback for when a client connects (receives a connect request)

    • OptionalonClientDisconnect?: (client: string) => void

      Callback for when a client disconnects (previously connected and the provider stops)

    • relays: string[]

      The relays to communicate over

    • Optionalsecret?: string

      A random secret used to authorize clients to connect

    • Optionalsigner?: ISigner

      Optional signer for provider identity

    • upstream: ISigner

      The signer to use for signing events and encryption