A communication channel with an extension.

It supports a basic request-response kind of interaction (web content is the requester). The meaning of the requests and responses are defined in another layer of abstraction.

Use create to create one.

Constructors

Properties

messageFrame: Window
nextId: number
origin: string

Methods

  • Parameters

    • req: unknown

    Returns Promise<unknown>

  • Parameters

    • type: string
    • handler: ((event) => void)
        • (event): void
        • Parameters

          • event: never

          Returns void

    Returns void