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

    Class RequestMessage

    This is the format of an outgoing message.

    NOTE:

    Index

    Properties

    context: string

    The global context for this message. For example, something like contentScopeScripts or specialPages

    featureName: string

    The name of the sub-feature, such as duckPlayer or clickToLoad

    id: string

    The id that native sides can use when sending back a response

    method: string

    The name of the handler to be executed on the native side

    params: undefined | Record<string, any>

    Optional data payload - must be a plain key/value object