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.



messageFrame: Window
nextId: number
origin: string


  • Parameters

    • req: unknown

    Returns Promise<unknown>

  • Parameters

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

          • event: never

          Returns void

    Returns void