kernl API
    Preparing search index...

    Interface AppletMessage

    One message between an applet and the shell. via is the channel: window for a window-level message (NIP-5D allows one, napplet.hello), port for everything on the bound port.

    interface AppletMessage {
        at: number;
        direction: AppletMessageDirection;
        error?: string;
        message: unknown;
        type: string;
        via: "window" | "port";
        windowId: string;
    }
    Index
    at: number
    error?: string

    What failed, when the envelope reports a failure; see appletMessageFailure.

    message: unknown

    The message itself. It can hold private messages, signed events and stored values: keep it in memory only.

    type: string

    The envelope's type, or unknown for anything that is not an envelope.

    via: "window" | "port"
    windowId: string