Constructors

Properties

callListeners: any
invokeCallback: any
listeners: any
messageListener: any

Handler for window message events

parentOrigin: any
parentWindow: any
showError: any

Methods

  • Returns void

  • Parameters

    • Optional id: string
    • Optional listener: Listener

    Returns void

  • Type Parameters

    • T = any

    Parameters

    • Optional id: string

    Returns Promise<T>

  • Call listener whenever a message with the given id (or otherwise any message) is received from the parent

    Parameters

    • id: undefined | string
    • listener: Listener
    • Optional callOnError: boolean

    Returns void

  • Send a message to the parent

    Type Parameters

    • S

    • T

    Parameters

    Returns void

  • Type Parameters

    • S

    • T

    Parameters

    Returns Promise<T>

Generated using TypeDoc