@duckduckgo/content-scope-scripts
    Preparing search index...

    Class ExtensionMessagingConfig

    Some re-exports for convenience

    Index
    handlers: Set<(data: any) => void> = ...
    listening: boolean = false

    Whether the runtime.onMessage listener is registered.

    platform: "chrome-mv3"
    port: Port | null = null
    portName: string
    • Parameters

      • handler: (data: any) => void

      Returns () => void

    • Post a message, connecting first if there is no open port.

      Parameters

      • msg: any

      Returns Port

      the port the message was posted on