Class BrowserWindowMessageConnection

Browser window Post Message connector module

Hierarchy (view full)

  • default
    • BrowserWindowMessageConnection

Constructors

Properties

debug: boolean
listener?: ((this: Window, ev: MessageEvent<any>) => void)
origin?: string
receiveDirection: MESSAGE_DIRECTION
sendDirection?: MESSAGE_DIRECTION

Methods

  • Connect

    Parameters

    • onMessage: ((message: any, origin: string, source: null | MessageEventSource) => void)

      Message handler

        • (message, origin, source): void
        • Parameters

          • message: any
          • origin: string
          • source: null | MessageEventSource

          Returns void

    • onDisconnect: (() => void)

      trigger when runtime connection in closed

        • (): void
        • Returns void

    Returns void