Class BrowserWindowMessageConnection

Browser window Post Message connector module

Hierarchy

  • default
    • BrowserWindowMessageConnection

Constructors

Properties

debug: boolean
listener?: ((this, ev) => void)

Type declaration

    • (this, ev): void
    • Parameters

      • this: Window
      • ev: MessageEvent<any>

      Returns void

origin?: string
receiveDirection: MESSAGE_DIRECTION
sendDirection?: MESSAGE_DIRECTION

Methods

  • Connect

    Parameters

    • onMessage: ((message, origin, source) => 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

Generated using TypeDoc