@open-rpc/client-js
    Preparing search index...

    Class PostMessageWindowTransport

    Hierarchy

    • Transport
      • PostMessageWindowTransport
    Index

    Constructors

    Properties

    frame: undefined | null | Window
    postMessageID: string
    transportRequestManager: TransportRequestManager
    uri: string

    Methods

    • Parameters

      • data: JSONRPCRequestData

      Returns
          | IJSONRPCRequest
          | IJSONRPCNotification
          | (IJSONRPCRequest | IJSONRPCNotification)[]

    • Parameters

      • data: JSONRPCRequestData
      • _timeout: undefined | number = 5000

      Returns Promise<any>

    • Parameters

      • event: keyof ITransportEvents
      • handler:
            | ((data: JSONRPCError) => void)
            | ((data: JSONRPCRequestData) => void)
            | ((data: IJSONRPCNotificationResponse) => void)
            | ((data: IJSONRPCResponse) => void)

      Returns void

    • Parameters

      • Optionalevent: keyof ITransportEvents
      • Optionalhandler:
            | ((data: JSONRPCError) => void)
            | ((data: JSONRPCRequestData) => void)
            | ((data: IJSONRPCNotificationResponse) => void)
            | ((data: IJSONRPCResponse) => void)

      Returns undefined | EventEmitter<DefaultEventMap>