Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageSender

Hierarchy

  • MessageSender

Index

Constructors

constructor

  • new MessageSender(currentWindow: Window, parentWindow: Window, params: Params): MessageSender

Properties

Private _currentWindow

_currentWindow: Window

Private _params

_params: Params

Private _parentWindow

_parentWindow: Window

Private _resolvers

_resolvers: any

Private _uniqueKey

Methods

Private _addResolver

  • _addResolver(resolver: Function): string

Private _eventHandler

  • _eventHandler(e: MessageEvent): void

Private _setListener

  • _setListener(): void

send

  • send(cmd: string, params?: undefined | object): Promise<any>
  • Parameters

    • cmd: string
    • Optional params: undefined | object

    Returns Promise<any>

Generated using TypeDoc