Documentation
    Preparing search index...

    Interface UnroutedMessageInfo

    Diagnostic payload reported when ShellAdapter.onUnroutedMessage fires — i.e. when ShellBridge.handleMessage drops an incoming postMessage because it cannot be routed to a registered napplet window.

    hooks.onUnroutedMessage = (info: UnroutedMessageInfo) => {
    console.warn(`[shell] dropped ${info.type ?? '<unknown>'} from ${info.origin}: ${info.reason}`);
    };
    interface UnroutedMessageInfo {
        origin: string;
        reason: "no-source-window" | "unregistered-window";
        type?: string;
    }
    Index

    Properties

    Properties

    origin: string

    The MessageEvent.origin of the dropped message.

    reason: "no-source-window" | "unregistered-window"

    Why the message was dropped:

    • no-source-window — the MessageEvent had no source window to identify the sender.
    • unregistered-window — the source Window is not in originRegistry (the sending iframe was never registered, or a srcdoc reload swapped its contentWindow to a new object that no longer matches the registry key).
    type?: string

    The dropped message's type field when event.data is an object with a string type; undefined for malformed/non-envelope payloads.