foo-webview-sdk
    Preparing search index...

    Interface PortPostMessageParams

    Parameters for port.postMessage. Send a message to every other port on the sender's channel, as a port:message event to each port's window. The sending port must belong to the calling window, otherwise the call fails with PERMISSION_DENIED; an unknown sending port fails with PORT_NOT_FOUND.

    interface PortPostMessageParams {
        message: JsonValue;
        portId: string;
    }
    Index
    message: JsonValue

    The message, delivered as message of the event. null counts as missing.

    portId: string

    Id of the sending port.