Class BrowserWindowMessageConnection

Browser window Post Message connector module

Hierarchy

Constructors

Properties

debug: boolean
listener?: ((this: Window, ev: MessageEvent<any>) => void)

Type declaration

    • (this: Window, ev: MessageEvent<any>): void
    • Parameters

      • this: Window
      • ev: MessageEvent<any>

      Returns void

origin?: string
receiveDirection: MESSAGE_DIRECTION
sendDirection?: MESSAGE_DIRECTION

Methods

  • Connect

    Parameters

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

      Message handler

        • (message: any, origin: string, source: null | MessageEventSource): 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