The iframe target to setup the connection on.
Connection configuration options.
Indicates if a connection has been established
The iframe target to setup the connection on.
Close the port being used to communicate. It will prevent any further messages being sent or received.
This method will emit an event to its counterpart.
The name of the event to emit.
Payload to be sent with the event.
Returns Connection instance.
Used to trigger the initiation of a connection manually. To be used if the onload, and clientInitiates options are disabled.
Bind a callback to an event.
The name of the event to listen for.
The function to call when the event is fired.
Returns Connection instance.
Make a request of the counterpart. It will automatically reject the promise if the timeout time is exceeded.
The name of the event to emit
Payload to be sent with the request
A promise that can resolve with any payload
Generated using TypeDoc
The parent side of the connection.