foo-webview-sdk
    Preparing search index...

    Interface PortConnectParams

    Parameters for port.connect. Open a port on a named channel for the calling window and announce it with port:connected. Any number of ports, from one window or several, can share a channel. A port belongs to the page that opened it and stays open until port.disconnect, until that page starts a top-level navigation (a reload or another address; same-document navigation such as a hash change does not count, and a navigation that ends in a download still does), or until its WebView goes away: the popup closes, the panel is removed, or the WebView is rebuilt or crashes beyond recovery. Each of these closes the port with port:disconnected before the next page can open ports.

    interface PortConnectParams {
        name: string;
    }
    Index
    name: string

    Channel name; ports with the same name exchange messages.