Documentation
    Preparing search index...

    Interface MockRelaySubscription

    One live subscription.

    const sub: MockRelaySubscription = { windowId: 'w1', subId: 'sub-1', filters: [{ kinds: [1] }], send: console.log };
    
    interface MockRelaySubscription {
        filters: NostrFilter[];
        relay?: string;
        send: (message: NappletMessage) => void;
        subId: string;
        windowId: string;
    }
    Index

    Properties

    filters: NostrFilter[]

    NIP-01 filters (OR).

    relay?: string

    Scoped relay URL when the request carried relay.

    send: (message: NappletMessage) => void

    Delivery callback of the relay.subscribe request; live events go through it.

    subId: string

    Napplet-chosen subscription id.

    windowId: string

    Owning window.