Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Static

Hierarchy

  • Static

Index

Methods

Methods

connect

  • connect(remoteWindow: Window, remoteOrigin: string): Messenger
  • Create a new messenger for given window object. The remoteOrigin URL is used both to give to window.postMessage calls on remoteWindow, and to filter inbound-message-events on the local window object.

    Parameters

    • remoteWindow: Window
    • remoteOrigin: string

    Returns Messenger