Documentation
    Preparing search index...

    Interface NappletMessage

    Base interface for all JSON envelope messages exchanged between napplet and shell. The type field is a string discriminant in domain.action format (e.g., "relay.subscribe", "storage.get").

    Concrete message types extend this interface with domain-specific payload fields.

    const msg: NappletMessage = { type: 'relay.subscribe' };

    // Concrete message with payload:
    interface RelaySubscribe extends NappletMessage {
    type: 'relay.subscribe';
    filters: NostrFilter[];
    }
    interface NappletMessage {
        type: string;
    }
    Index

    Properties

    Properties

    type: string

    Message type discriminant in "domain.action" format (e.g., "relay.subscribe", "storage.get")